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
}

Package Sidebar

Install

npm i promise-from-stream

Weekly Downloads

23

Version

0.2.6

License

MIT

Last publish

Collaborators

  • yxxx5