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
}

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i promise-from-stream

    Weekly Downloads

    15

    Version

    0.2.6

    License

    MIT

    Last publish

    Collaborators

    • yxxx5