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",
"version": "4.0.1",
"description": "Easier stdin",
"description": "Get stdin as a string or buffer",
"license": "MIT",
"repository": "sindresorhus/get-stdin",
"author": {
@ -26,7 +26,7 @@
"buffer",
"stream",
"process",
"stream"
"read"
],
"devDependencies": {
"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)
> Easier stdin
> Get stdin as a string or buffer
## Install
@ -16,8 +16,8 @@ $ npm install --save get-stdin
// example.js
const stdin = require('get-stdin');
stdin.then(data => {
console.log(data);
stdin.then(x => {
console.log(x);
//=> 'unicorns'
});
```

Loading…
Cancel
Save