Skip to content

Instantly share code, notes, and snippets.

@brycebaril
Created August 9, 2013 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brycebaril/6190123 to your computer and use it in GitHub Desktop.
Save brycebaril/6190123 to your computer and use it in GitHub Desktop.
eeevil! Ok, not too evil...
require("pipechain").install()
var spigot = require("stream-spigot") // or whatever you like to create streams
var s = spigot(["a", "b", "c", "\n"])
+s
require("./other.js")
// console will read abc
+process.stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment