2017-04-10 13:39:37 +01:00

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);
});