Created
May 2, 2014 11:01
-
-
Save timruffles/ab6da0118d3e25b50f6b to your computer and use it in GitHub Desktop.
node readSync from stdin - good for cli tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.stdin.resume() | |
var stdin = require("fs").readFileSync("/dev/stdin","utf8"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment