Browse Source

improve description

master
Sindre Sorhus 9 years ago
parent
commit
509a4b205b
  1. 4
      package.json
  2. 6
      readme.md

4
package.json

@ -1,7 +1,7 @@
{ {
"name": "get-stdin", "name": "get-stdin",
"version": "4.0.1", "version": "4.0.1",
"description": "Easier stdin", "description": "Get stdin as a string or buffer",
"license": "MIT", "license": "MIT",
"repository": "sindresorhus/get-stdin", "repository": "sindresorhus/get-stdin",
"author": { "author": {
@ -26,7 +26,7 @@
"buffer", "buffer",
"stream", "stream",
"process", "process",
"stream" "read"
], ],
"devDependencies": { "devDependencies": {
"ava": "*", "ava": "*",

6
readme.md

@ -1,6 +1,6 @@
# get-stdin [![Build Status](https://travis-ci.org/sindresorhus/get-stdin.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stdin) # get-stdin [![Build Status](https://travis-ci.org/sindresorhus/get-stdin.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stdin)
> Easier stdin > Get stdin as a string or buffer
## Install ## Install
@ -16,8 +16,8 @@ $ npm install --save get-stdin
// example.js // example.js
const stdin = require('get-stdin'); const stdin = require('get-stdin');
stdin.then(data => { stdin.then(x => {
console.log(data); console.log(x);
//=> 'unicorns' //=> 'unicorns'
}); });
``` ```

Loading…
Cancel
Save