literal-stream

wrap a string literal in a readable stream

literal-stream

wrap a string literal in a readable stream

var literalStream = require('literal-stream')
 
literalStream('foo').pipe(process.stdout)
// foo 

literalStream(literal: String) => ReadableStream

literalStream returns a Streams2 ReadableStream which will emit literal once and then end.

$ npm install literal-stream

From package root:

$ npm install
$ npm test

MIT. (c) 2013 jden jason@denizac.org. See LICENSE.md