mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
14 lines
188 B
JavaScript
14 lines
188 B
JavaScript
"use strict"
|
|
|
|
let getStdin = require('get-stdin');
|
|
|
|
let handle = (req) => {
|
|
console.log(req);
|
|
};
|
|
|
|
getStdin().then(val => {
|
|
handle(val);
|
|
}).catch(e => {
|
|
console.error(e.stack);
|
|
});
|