This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
literal-stream with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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 email@example.com. See LICENSE.md