readsy
v0.1.0
Published
Read stream wrapper that supports async initialization
Downloads
2
Readme
readsy
Read stream wrapper that supports async initialization.
npm install readsy
var rs = readsy(init)
var readsy = require('readsy')
var readStream = readsy((cb) => {
setTimeout(() => {
cb(null, fs.createReadStream('/dev/urandom'))
}, 100)
})
readStream.pipe(fs.createWriteStream('/dev/null'))
License
MIT