Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gagle/node-streamifier

Converts a Buffer/String to a readable stream.
https://github.com/gagle/node-streamifier

Last synced: 6 days ago
JSON representation

Converts a Buffer/String to a readable stream.

Awesome Lists containing this project

README

        

streamifier
===========

#### Converts a Buffer/String into a readable stream ####

[![npm][npm-image]][npm-url]


___module_.createReadStream(object[, options]) : Readable__

Returns a Readable stream.

The `object` can be of any data type. If it is a Buffer or a string, the available `options` are [`highWaterMark` and `encoding`](http://nodejs.org/api/stream.html#stream_new_stream_readable_options), otherwise the Readable stream is automatically set in [object mode](http://nodejs.org/api/stream.html#stream_object_mode) and the `options` parameter is ignored.

[npm-image]: https://img.shields.io/npm/v/streamifier.svg?style=flat
[npm-url]: https://npmjs.org/package/streamifier