Sign Up for Free

RunKit +

Try any Node.js package right in your browser

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:

var literalStream = require("literal-stream")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

literal-stream v0.1.0

wrap a string literal in a readable stream

literal-stream

wrap a string literal in a readable stream

usage

var literalStream = require('literal-stream')

literalStream('foo').pipe(process.stdout)
// foo

api

literalStream(literal: String) => ReadableStream

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

installation

$ npm install literal-stream

running the tests

From package root:

$ npm install
$ npm test

contributors

license

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free