mirror of
https://github.com/JonasunderscoreJones/api-worker.git
synced 2025-10-23 18:39:19 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
commit
58a42872a0
1745 changed files with 741893 additions and 0 deletions
15
node_modules/simple-concat/index.js
generated
vendored
Normal file
15
node_modules/simple-concat/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
module.exports = function (stream, cb) {
|
||||
var chunks = []
|
||||
stream.on('data', function (chunk) {
|
||||
chunks.push(chunk)
|
||||
})
|
||||
stream.once('end', function () {
|
||||
if (cb) cb(null, Buffer.concat(chunks))
|
||||
cb = null
|
||||
})
|
||||
stream.once('error', function (err) {
|
||||
if (cb) cb(err)
|
||||
cb = null
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue