readsy

0.1.0 • Public • Published

readsy

Read stream wrapper that supports async initialization.

Build Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i readsy

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • cshum