clone the code from github .
npm install string-to-readable-stream
const { stringToStream } = require('./string-to-readable-stream');
let string = "lorem ipsum is a simply dummy text of the printing and typesetting of industry";
let readableStream = stringToStream(string); //generate a readable stream
/** pipe to console **/
readableStream.pipe(process.stdout);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.