Bolshakova Anna ab21a11190 lab | 3 weeks ago | |
---|---|---|
.. | ||
index.js | 3 weeks ago | |
license | 3 weeks ago | |
package.json | 3 weeks ago | |
readme.md | 3 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