Last active
March 7, 2016 21:27
-
-
Save wasamasa/5c3de741515ac980a6d0 to your computer and use it in GitHub Desktop.
node.cljs
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
(do | |
(js/require "process") | |
(.setEncoding js/process.stdin "utf8") | |
(.on js/process.stdin "data" | |
(fn [data] | |
(.write js/process.stdout data)))) |
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
require('process'); | |
process.stdin.setEncoding('utf8'); | |
process.stdin.on('data', function(data) { | |
process.stdout.write(data); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment