Created
April 11, 2015 12:14
-
-
Save IPRIT/2f24f7032cf966a231fa 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
| var args = process.argv.slice(2); | |
| var net = require('net'); | |
| var strftime = require('strftime'); | |
| net.createServer(function(socket) { | |
| socket.end(strftime('%F %R') + '\n'); | |
| }).listen(+args[0]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment