biofriction-wp-theme/node_modules/get-stdin
jorge-vitrubio a7910c81a8 moved to new repo 2021-10-26 14:18:09 +02:00
..
index.js moved to new repo 2021-10-26 14:18:09 +02:00
package.json moved to new repo 2021-10-26 14:18:09 +02:00
readme.md moved to new repo 2021-10-26 14:18:09 +02:00

readme.md

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);
	//=> unicorns
});
$ echo unicorns | node example.js
unicorns

API

stdin(callback)

Get stdin as a string.

stdin.buffer(callback)

Get stdin as a buffer.

License

MIT © Sindre Sorhus