Have ideas to improve npm?Join in the discussion! »

    @broofa/asyncconcat

    1.0.1 • Public • Published

    asyncConcat

    Async method to concatenate a stream into a buffer

    Installation

    npm install @broofa/asyncconcat

    Usage

    const asyncConcat = require('@broofa/asyncconcat');
    
    // Concatenate stream as a String
    const asString = await asyncConcat(someStream, 'utf8');
    
    // Concatenate stream as a Buffer
    const asBuffer = await asyncConcat(someStream);
    

    Install

    npm i @broofa/asyncconcat

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar