Skip to content
Convert a string/Buffer/Uint8Array to a readable stream
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create funding.yml May 28, 2019
.editorconfig Init May 1, 2018
.gitattributes
.gitignore
.npmrc Init May 1, 2018
.travis.yml Require Node.js 8, add TypeScript definition (#4) Mar 11, 2019
index.d.ts Refactor TypeScript definition to CommonJS compatible export (#5) Apr 5, 2019
index.js
index.test-d.ts Refactor TypeScript definition to CommonJS compatible export (#5) Apr 5, 2019
license Init May 1, 2018
package.json 2.1.0 Apr 5, 2019
readme.md Init May 1, 2018
test.js Tiny readability tweak Mar 5, 2019

readme.md

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

You can’t perform that action at this time.