@trenskow/stream-limiter

0.1.14 • Public • Published

@trenskow/stream-limiter

A transform stream to limit the length of a stream.

Usage

const StreamLimiter = require('@trenskow/stream-limiter');

const myReadableStream = /* a readable stream */
const myWriteableStream = /* a writeable stream */

myReadableStream.pipe(new StreamLimiter(1000 /* (limit) */)).pipe(myWriteableStream)

LICENSE

See LICENSE

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @trenskow/stream-limiter

    Weekly Downloads

    0

    Version

    0.1.14

    License

    BSD-2-Clause

    Unpacked Size

    3.74 kB

    Total Files

    5

    Last publish

    Collaborators

    • trenskow