Newman's Personal Motorcade

    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

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • cshum