npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

to-readable-stream

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

725,729

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability