to-readable-stream
Convert a string/Buffer/Uint8Array to a readable stream
Last updated 5 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install to-readable-stream 
SYNC missed versions from official npm registry.

to-readable-stream

Convert a string/Buffer/Uint8Array to a readable stream

If you target Node.js 12 or later, you can use stream.Readable#from() instead.

Install

$ npm install to-readable-stream

Usage

import toReadableStream from 'to-readable-stream';

toReadableStream('????????').pipe(process.stdout);

API

toReadableStream(value)

Returns a stream.Readable.

value

Type: string | Buffer | Uint8Array

Value to convert to a stream.

Related


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Current Tags

  • 3.0.0                                ...           latest (5 years ago)

4 Versions

  • 3.0.0                                ...           5 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 53
This Month 79
Last Day 3
Last Week 62
Last Month 470
Dependencies (0)
None
Dev Dependencies (4)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |