Skip to content

Instantly share code, notes, and snippets.

@quickredfox
Created November 7, 2010 22:14
Show Gist options
  • Save quickredfox/666918 to your computer and use it in GitHub Desktop.
Save quickredfox/666918 to your computer and use it in GitHub Desktop.
Dangerously interesting.
var stdin = process.openStdin();
stdin.setEncoding('utf8');
stdin.on('data', logeval );
function logeval(chunk){
if(chunk) console.log( eval( chunk ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment