Bakhtina Sofya b84cb877be 1st comm | 2 weeks ago | |
---|---|---|
.. | ||
index.js | 2 weeks ago | |
license | 2 weeks ago | |
package.json | 2 weeks ago | |
readme.md | 2 weeks ago |
Convert a buffer/string/array/object into a stream
Correctly chunks up the input and handles backpressure.
$ npm install --save into-stream
const intoStream = require('into-stream');
intoStream('unicorn').pipe(process.stdout);
//=> 'unicorn'
Type: buffer
string
array<buffer|string>
Returns: Readable stream
Adheres to the requested chunk size, except for array
where each element will be a chunk.
Type: object
, array<object>
Returns: Readable object stream
MIT © Sindre Sorhus