Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

get-stdin

2.0.0 • Public • Published

get-stdin Build Status

Easier stdin

Install

$ npm install --save get-stdin

Usage

// example.js
var stdin = require('get-stdin');
 
stdin(function (data) {
    console.log(data.toString());
    //=> unicorns
});
echo unicorns | node example.js
unicorns

License

MIT © Sindre Sorhus