Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

Keywords

none

install

npm i readsy

Downloadsweekly downloads

0

version

0.1.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar