mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
8 lines
142 B
CoffeeScript
8 lines
142 B
CoffeeScript
getStdin = require 'get-stdin'
|
|
|
|
handler = (req) -> console.log req
|
|
|
|
getStdin()
|
|
.then (val) -> handler val
|
|
.catch (e) -> console.error e.stack
|