install gulp to process code
This commit is contained in:
parent
24f6606c2c
commit
b6a3900ee2
1651 changed files with 253427 additions and 39 deletions
16
node_modules/teex/example.js
generated
vendored
Normal file
16
node_modules/teex/example.js
generated
vendored
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue