1 # get-stdin [![Build Status](https://travis-ci.org/sindresorhus/get-stdin.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stdin)
9 $ npm install --save get-stdin
17 var stdin = require('get-stdin');
19 stdin(function (data) {
26 $ echo unicorns | node example.js
35 Get `stdin` as a string.
37 ### stdin.buffer(callback)
39 Get `stdin` as a buffer.
44 MIT © [Sindre Sorhus](http://sindresorhus.com)