Created
June 15, 2015 03:26
-
-
Save timoxley/e1720e446b40c38eb2be to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // cat.js | |
| // cat a.js b.js | node cat.js | |
| var vm = require('vm') | |
| var a = '' | |
| process.stdin.on('data', function(b) { | |
| a += b.toString() | |
| }) | |
| process.stdin.on('end', function() { | |
| vm.runInThisContext(a) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment