promise-from-stream

0.2.6 • Public • Published

promise-from-stream

Promisify Readable Writable...Stream, is used for await/async

install

$ npm install --save promise-from-stream

Usage

const pfs = require('promise-from-stream')
async function d(){
    await pfs(
        new Readable().pipe(
            new Transform
        ).pipe(
                new Writable({
                    dest: filePath
                })
            )
    )
    //done
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.6
    28
    • latest

Version History

Package Sidebar

Install

npm i promise-from-stream

Weekly Downloads

29

Version

0.2.6

License

MIT

Last publish

Collaborators

  • yxxx5