Adding CoffeeScript base example

Adding CoffeeScript base
This commit is contained in:
aafrey
2017-04-10 17:17:35 -04:00
committed by Alex Ellis
parent de359881e7
commit c7db0faab4
5 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,7 @@
getStdin = require 'get-stdin'
handler = (req) -> console.log req
getStdin()
.then (val) -> handler val
.catch (e) -> console.error e.stack