{
  "_args": [
    [
      {
        "raw": "get-stdin@^5.0.1",
        "scope": null,
        "escapedName": "get-stdin",
        "name": "get-stdin",
        "rawSpec": "^5.0.1",
        "spec": ">=5.0.1 <6.0.0",
        "type": "range"
      },
      "/build/npm-check-updates/src/npm-check-updates-2.11.0.tgz"
    ]
  ],
  "_from": "get-stdin@>=5.0.1 <6.0.0",
  "_id": "get-stdin@5.0.1",
  "_inCache": true,
  "_location": "/npm-check-updates/get-stdin",
  "_nodeVersion": "4.2.1",
  "_npmUser": {
    "name": "sindresorhus",
    "email": "sindresorhus@gmail.com"
  },
  "_npmVersion": "2.14.7",
  "_phantomChildren": {},
  "_requested": {
    "raw": "get-stdin@^5.0.1",
    "scope": null,
    "escapedName": "get-stdin",
    "name": "get-stdin",
    "rawSpec": "^5.0.1",
    "spec": ">=5.0.1 <6.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/npm-check-updates"
  ],
  "_resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz",
  "_shasum": "122e161591e21ff4c52530305693f20e6393a398",
  "_shrinkwrap": null,
  "_spec": "get-stdin@^5.0.1",
  "_where": "/build/npm-check-updates/src/npm-check-updates-2.11.0.tgz",
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "sindresorhus.com"
  },
  "bugs": {
    "url": "https://github.com/sindresorhus/get-stdin/issues"
  },
  "dependencies": {},
  "description": "Get stdin as a string or buffer",
  "devDependencies": {
    "ava": "*",
    "buffer-equals": "^1.0.3",
    "xo": "*"
  },
  "directories": {},
  "dist": {
    "shasum": "122e161591e21ff4c52530305693f20e6393a398",
    "tarball": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz"
  },
  "engines": {
    "node": ">=0.12.0"
  },
  "files": [
    "index.js"
  ],
  "gitHead": "496456754b3cf8faabd320181374ef0bdb664820",
  "homepage": "https://github.com/sindresorhus/get-stdin#readme",
  "keywords": [
    "std",
    "stdin",
    "stdio",
    "concat",
    "buffer",
    "stream",
    "process",
    "read"
  ],
  "license": "MIT",
  "maintainers": [
    {
      "name": "sindresorhus",
      "email": "sindresorhus@gmail.com"
    }
  ],
  "name": "get-stdin",
  "optionalDependencies": {},
  "readme": "# get-stdin [![Build Status](https://travis-ci.org/sindresorhus/get-stdin.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stdin)\n\n> Get [stdin](https://nodejs.org/api/process.html#process_process_stdin) as a string or buffer\n\n\n## Install\n\n```\n$ npm install --save get-stdin\n```\n\n\n## Usage\n\n```js\n// example.js\nconst getStdin = require('get-stdin');\n\ngetStdin().then(str => {\n\tconsole.log(str);\n\t//=> 'unicorns'\n});\n```\n\n```\n$ echo unicorns | node example.js\nunicorns\n```\n\n\n## API\n\nBoth methods returns a promise that is resolved when the `end` event fires on the `stdin` stream, indicating that there is no more data to be read.\n\n### getStdin()\n\nGet `stdin` as a string.\n\nIn a TTY context, a promise that resolves to an empty string is returned.\n\n### getStdin.buffer()\n\nGet `stdin` as a buffer.\n\nIn a TTY context, a promise that resolves to an empty buffer is returned.\n\n\n## Related\n\n- [get-stream](https://github.com/sindresorhus/get-stream) - Get a stream as a string or buffer\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sindresorhus/get-stdin.git"
  },
  "scripts": {
    "test": "xo && ava test.js && echo unicorns | ava test-real.js"
  },
  "version": "5.0.1",
  "xo": {
    "ignores": [
      "test.js"
    ]
  }
}
