get-stdin

Easier stdin

npm install get-stdin
4 969 downloads in the last day
31 875 downloads in the last week
56 152 downloads in the last month

get-stdin Build Status

Easier stdin

Install

npm install --save get-stdin

Example

// example.js
var stdin = require('get-stdin');

stdin(function (data) {
    console.log(data);
    //=> unicorns
});
$ echo unicorns | node example.js

License

MIT © Sindre Sorhus

npm loves you