{"name":"get-stdin","version":"7.0.0","description":"Get stdin as a string or buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stdin.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava test.js test-buffer.js && echo unicorns | node test-real.js && tsd"},"keywords":["std","stdin","stdio","concat","buffer","stream","process","read"],"devDependencies":{"@types/node":"^11.13.4","ava":"^1.4.1","delay":"^4.2.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"e30338537e55c6007ccb65df20fc3bf9b1d621dc","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin#readme","_id":"get-stdin@7.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==","shasum":"8d5de98f15171a125c5e516643c7a6d0ea8a96f6","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-7.0.0.tgz","fileCount":5,"unpackedSize":4546,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcs+vsCRA9TVsSAnZWagAA4XYP/imz7yYt9IUXb8dJLHya\nW3bwNbnLK8i/i6Rjs7Ni8wtblaE/KzB7U8Vk4C2Xpl+HVSFJsGIDJSzcF14K\n3xhoC/AuO9SFDzrlSeDtSszBQtdBU2Vq4XkHU7cNWJYGClDxPRNrszpNMMRs\np3PkKwN7E6T7Cacenjbu12KFLLsXerAnf44diJ5XZt+nX08eC3hbPxMsD4HE\n8bUSBBKBXh/Szvh0ZUUVd+/elBWLm+Qlt55mzfVkOF3S4Q4dEulHDrpTC1g3\nqJppKrTgPzJWtFGJ27daeYkDw8cv2iO1D6phNCh2pNtLdzwF2o+YcnG2kAXs\nyKW/ZHedtFtz6hFfs7ts9kW9Ms7rtKKaMkycHmAV+TAEpIgXVkRwzLuaephV\nQiMH+C9O9l7wIzJs8i4OWcLzHOPubI7kknbC9+c3yp9bCFNSdiaSKJcyQXJr\nuHUxSH5qJDefVm/HW9sFUtIbKcH8b7MkwrzDagTqkRWC5upKaOwDIF7+VPOa\ngSDzlMr/zTjfNKCdCBQ58fYnGFQ2ZqKstC6WhLL+QuNXGl8XH8capG98inwp\nZOtHGzPY7YPGCDje4uojn62nsRinql+v8V16fFAHDlF9AsqjIYv3WpjLi2lt\nMFgxmfRexFZnVf2wBkc/B9wrjNcPXyYYNKqhWsHg4uxsCA8x3hER31fW8RHS\n8GIy\r\n=R2mm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFwf3j4gf9VhV1fZh0jznXPSqhup5LlJOrN3iU5ljhkAiEAx4Wg10uSWDpNe7zIDdCGJST8ylmVBVLpAIjrmPV7NU8="}],"size":2075,"noattachment":false,"key":"/get-stdin/-/get-stdin-7.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stdin_7.0.0_1555295211509_0.18471910142202796"},"_hasShrinkwrap":false,"readme":"# get-stdin\n\n> Get [stdin](https://nodejs.org/api/process.html#process_process_stdin) as a string or buffer\n\n## Install\n\n```\n$ npm install get-stdin\n```\n\n## Usage\n\n```js\n// example.js\nimport getStdin from 'get-stdin';\n\nconsole.log(await getStdin());\n//=> 'unicorns'\n```\n\n```\n$ echo unicorns | node example.js\nunicorns\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## Related\n\n- [get-stream](https://github.com/sindresorhus/get-stream) - Get a stream as a string or buffer\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-get-stdin?utm_source=npm-get-stdin&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1555295211629,"_cnpm_publish_time":1555295211629,"dist-tags":{"latest":"10.0.0"}}