$ npm install string-to-stream
npm install string-to-stream
Use string-to-stream like this:
string-to-stream
var str = require('string-to-stream') str('hi there').pipe(process.stdout) // => 'hi there'
MIT. Copyright (c) Feross Aboukhadijeh.