Initial commit

This commit is contained in:
Joe
2026-06-26 14:12:10 +02:00
commit 12518b259c
5258 changed files with 732924 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const tee = require('./')
const { Readable } = require('streamx')
const s = new Readable()
for (let i = 0; i < 1000; i++) {
s.push(Buffer.alloc(1024))
}
const [a, b] = tee(s)
a.on('data', console.log)
setTimeout(function () {
b.read()
}, 1000)