mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
New updates and modules
This commit is contained in:
parent
4d5d408898
commit
0abf0f90f6
959 changed files with 364301 additions and 17493 deletions
21
node_modules/write-stream/array.js
generated
vendored
Normal file
21
node_modules/write-stream/array.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
var to = require("./index")
|
||||
|
||||
module.exports = toArray
|
||||
|
||||
function toArray(array, end) {
|
||||
if (typeof array === "function") {
|
||||
end = array
|
||||
array = []
|
||||
}
|
||||
|
||||
return to(writeArray, endArray)
|
||||
|
||||
function writeArray(chunk) {
|
||||
array.push(chunk)
|
||||
}
|
||||
|
||||
function endArray() {
|
||||
end(array)
|
||||
this.emit("end")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue