Closed malikkamranabid closed 4 years ago
How do i read JSON file by using this package. I am using following command to get stdin but using this package it does-not work. cat airlines/british_airways/example_input.json | tsc && node dist/index.js
cat airlines/british_airways/example_input.json | tsc && node dist/index.js
const getStdin = require('get-stdin'); (async () => { console.log(JSON.parse(await getStdin())); //=> {foo: true} })();
Thanks
How do i read JSON file by using this package. I am using following command to get stdin but using this package it does-not work.
cat airlines/british_airways/example_input.json | tsc && node dist/index.js