Negligible Participation Metric
    Wondering what’s next for npm?Check out our public roadmap! »

    to-readable-stream
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.0 • Public • Published

    to-readable-stream Build Status

    Convert a string/Buffer/Uint8Array to a readable stream

    Install

    $ npm install to-readable-stream
    

    Usage

    const toReadableStream = require('to-readable-stream');
     
    toReadableStream('🦄🌈').pipe(process.stdout);

    API

    toReadableStream(input)

    Returns a stream.Readable.

    input

    Type: string Buffer Uint8Array

    Value to convert to a stream.

    Related

    License

    MIT © Sindre Sorhus

    Install

    npm i to-readable-stream

    DownloadsWeekly Downloads

    6,492,244

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar