Bolshakova Anna ab21a11190 lab | пре 3 недеља | |
---|---|---|
.. | ||
index.js | пре 3 недеља | |
license | пре 3 недеља | |
package.json | пре 3 недеља | |
readme.md | пре 3 недеља |
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