feat : first commit

This commit is contained in:
unknown
2026-06-03 20:05:50 +07:00
commit 9cd232bf2d
6701 changed files with 440316 additions and 0 deletions
+15
View 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
})
}