readsy
0.1.0 • Public • Published 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
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.1.0
0
Version History
- VersionDownloads (Last 7 Days)
- 0.1.0
0
Package Sidebar
Install
Weekly Downloads