{"_id":"@cjser/get-stdin__v9_0_0","name":"@cjser/get-stdin__v9_0_0","dist-tags":{"latest":"9.0.0-cjser.2"},"versions":{"9.0.0-cjser.2":{"name":"@cjser/get-stdin__v9_0_0","version":"9.0.0-cjser.2","description":"Get stdin as a string or buffer","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":">=12"},"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":"^14.14.41","ava":"^3.15.0","delay":"^5.0.0","tsd":"^0.14.0","xo":"^0.38.2"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"9.0.0","cjserVersion":2,"original":{"name":"get-stdin","version":"9.0.0","exports":"./index.js","repository":"sindresorhus/get-stdin","files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava test.js test-buffer.js && echo unicorns | node test-real.js && tsd"}}},"_id":"@cjser/get-stdin__v9_0_0@9.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-ro7tewXT5pdmmYVxJtTEx55j90Y5VoOYHRoPImXM9tRFeeY/WkpK88cVOh4oKc2KvbxBSefkm1GWSdlZWCCBTA==","shasum":"6722961380a18f62af1bbdef980458906efb97f2","tarball":"https://registry.npmjs.org/@cjser/get-stdin__v9_0_0/-/get-stdin__v9_0_0-9.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":6990,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCjaGMWn3evMDxkWZCTXt5HFVaITDQXhJBLFocfBuuM+gIgZchpRzlpsrOsK2lWpBFvEcXjldFf83vtfO9aoXt9190="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-stdin__v9_0_0_9.0.0-cjser.2_1778158267951_0.2598977504321833"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T12:51:07.849Z","9.0.0-cjser.2":"2026-05-07T12:51:08.096Z","modified":"2026-05-07T12:51:08.340Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Get stdin as a string or buffer","keywords":["std","stdin","stdio","concat","buffer","stream","process","read"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/get-stdin\n","readmeFilename":"readme.md","_rev":"1-0901c3ecdf4f47e44014e8eb2a9aa765"}