Bakhtina Sofya b84cb877be 1st comm | пре 2 недеља | |
---|---|---|
.. | ||
index.js | пре 2 недеља | |
license | пре 2 недеља | |
package.json | пре 2 недеља | |
readme.md | пре 2 недеља |
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