{"_id":"get-stdin","_rev":"1314313","name":"get-stdin","description":"Get stdin as a string or Uint8Array","dist-tags":{"latest":"10.0.0"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2026-09-11T03:05:33.000Z","created":"2014-02-13T18:35:28.728Z","10.0.0":"2026-02-05T09:11:20.861Z","9.0.0":"2021-04-16T07:19:50.680Z","8.0.0":"2020-05-12T09:42:55.101Z","7.0.0":"2019-04-15T02:26:51.629Z","6.0.0":"2018-03-02T18:17:34.787Z","5.0.1":"2015-11-11T16:41:09.677Z","5.0.0":"2015-08-31T06:06:39.962Z","4.0.1":"2015-01-20T13:38:44.238Z","4.0.0":"2015-01-19T13:42:43.566Z","3.0.2":"2014-11-23T11:41:23.570Z","3.0.1":"2014-11-23T08:50:39.465Z","3.0.0":"2014-08-17T19:25:24.108Z","2.0.0":"2014-08-14T16:10:40.720Z","1.0.0":"2014-08-04T16:06:14.910Z","0.1.0":"2014-02-13T18:35:28.728Z"},"users":{"allain":true,"recursion_excursion":true,"bencevans":true,"ahmed-dinar":true,"rocket0191":true,"django_wong":true,"s4j":true,"flumpus-dev":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stdin.git"},"versions":{"10.0.0":{"name":"get-stdin","version":"10.0.0","description":"Get stdin as a string or Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stdin.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && node --test"},"keywords":["std","stdin","stdio","concat","buffer","stream","process","read"],"devDependencies":{"@types/node":"^25.2.0","delay":"^7.0.0","xo":"^1.2.3"},"gitHead":"14e9437c7de3764dae4d1a76b1987542fe1e2ee6","types":"./index.d.ts","_id":"get-stdin@10.0.0","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-eWSePJ4zXFdqz+/Lyfopob4rIcoF/U2XfE8nJc7iZV6lnebWc9k7DoQQpX+2a9jc0AOvBsXvbe5YkjXl/MHbpg==","shasum":"438ea93d028ae5f312e3a3af88c11d30dbcfc195","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-10.0.0.tgz","fileCount":5,"unpackedSize":8256,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFICu2XF+xKbsKip51MZCY/OsD7/zm1QgFfF6XxEVLhTAiEA7RLcXelLMp941ZI10dm7dfSlonzpsDSXxsscJi9nCEE="}],"size":2889,"noattachment":false,"key":"/get-stdin/-/get-stdin-10.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-stdin_10.0.0_1770282680708_0.7252205690744893"},"_hasShrinkwrap":false,"publish_time":1770282680861,"_cnpm_publish_time":1770282680861},"9.0.0":{"name":"get-stdin","version":"9.0.0","description":"Get stdin as a string or buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stdin.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./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"},"gitHead":"147d91ccdb23748b4655192781928df9f4fb4aee","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin#readme","_id":"get-stdin@9.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==","shasum":"3983ff82e03d56f1b2ea0d3e60325f39d703a575","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-9.0.0.tgz","fileCount":5,"unpackedSize":4535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeTqXCRA9TVsSAnZWagAACPoQAJk5NHpGchcKNqyfIFgR\ndrVCROKsyyIDUNQZqWt/evQCj7RPfEHchkvp2da5dDoGeW63Y4IKJ1bVEmZp\nX+5cYUInH9yAwseUfO8eHa/CB1/Ilt6IZJYGvOswB4Ahz6LBaZQjfSJAWvBy\n2faNJtP1VSd32XLXXkvuwvpuyDJEg0xsC6mYKMWTp8B3gbClxtZ39Xf4PTf/\ndxjlv2YAe7yn2aD4SKopFFbSMuQ4LLEedBvKMAZs9uZTnUnSTtIM5y70G4ql\nEP5fc819UKTAxmCuvGb8jqGLtH2WGZDnRqq/xPknTRtvHjlp/jcO/kAQMSzC\nvimvIgrxhJJ1DM95bxkihS/p5Oe+L77JUk117hHx7PdTfPgXukhz4Bt7bcje\nMyrmaKeac9CABNZPsFBChszHkuUVrCeH5R81xuxZB311So66fBZBd3WXGDPc\nTCp5Qp6rrNqRcJjZ25ZCcLeZI/k0/SLcTRYjVQOEV0VFjnrHnPtwTE64tM4i\nBELcoRTyQo8Bz8uuEAbJMzpPFgzQiIdNwjsW4/cLeJs+3DWf9JuhCr9FtrvO\ntBWy9Ua8rTSwM6fLYhSMVbpnmlQflQvYtudtAHfvKAsuIiOzJcD1Iwdf9XU5\nlfreGEJ2Dkiq48cdgdzzbfyZVHfhsDQMpeOtkF7gHJAfWTQBVCTva0oDhIAC\nUESP\r\n=qecS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7WhSStzUd98LBOpMORLOrDNVei2VQ3dGGnhfwNSMKfAiBe4XVhisSL4S/mLm+MEkkDw0wlnjw0u8Bn6c+8Fmch7A=="}],"size":2180,"noattachment":false,"key":"/get-stdin/-/get-stdin-9.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stdin_9.0.0_1618557590571_0.1768780156948493"},"_hasShrinkwrap":false,"publish_time":1618557590680,"_cnpm_publish_time":1618557590680},"8.0.0":{"name":"get-stdin","version":"8.0.0","description":"Get stdin as a string or buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stdin.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"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":"^13.13.5","ava":"^2.4.0","delay":"^4.2.0","tsd":"^0.11.0","xo":"^0.24.0"},"gitHead":"07288e101242054df3c197abc5559458af6c78ba","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin#readme","_id":"get-stdin@8.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==","shasum":"cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-8.0.0.tgz","fileCount":5,"unpackedSize":4706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeum+fCRA9TVsSAnZWagAAcbEQAJJ3LNFhDyx27qf3mZI2\n6gyySUh4v+Yu7Hdn0ub7utiCGqBkXI5oDrFzuFij/VLj2IU7iqL8eEf0z8Jj\nE7kt6+sHP1aKznVb/nDRAEgN1fhqYDvgfPxPcDiHpSpnqbmgf0iJSGzc6DRz\nMO8HumeNlFp/qXEAXTHO22SHbT0uBFTPA5csekdmOWesBhxkbWrBlUHgQTsM\nq4U4ja8MRFn/p0/3NpUWsylcNqXeNpaYmAnCm8PJKxGah1MJ/FFrOaRRQFPM\nveWBbxYERdu1VrXsnvgWmvCvUuBjZcGJbeFP96ozbgJ6xKRgNcSEhi2aJTzB\ng4/0svekPJfiKN4RqobzOPZEhlgIjYLS0J4lQHz4fpOCwYME+SZze3nvhVlJ\nBU/+PuSu7aLb91+VZP5aWj5/Nd+piiKILUjdPS2DtUULrg5NOzJAdlslx3Qi\ny+cfdC6onNK3kSf0Wat68qUA1oXEHiAaQ7g0NI2PvPyvJqBNhsAh8L9pZGo7\nYVH3bJp9J7Vw2kcjtA/1jrXiRmrXyg45aX9XPzyk2TtyMFYjBr5yXNfdcaMn\nrXxgyULt6NUXVxNWTnCGG9U3UmyDMVjVAHrMWBtkTJNUF7pQBVrSFAO38lKw\nen1afewK4lKyoV3XF2HMJik8sLg4o9ADuSru+SgVtVxTM57+Lhy/FmTeAklv\nmlgx\r\n=39cJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf37RkwpfJaLf7BKD2w2HnOBtZz58MdWM28Byt29r/pAIgYB747Ikc2emWSZFR4g3enzZvN0GTLkI5vkpI0rEhA1A="}],"size":2235,"noattachment":false,"key":"/get-stdin/-/get-stdin-8.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stdin_8.0.0_1589276574949_0.5740921557748735"},"_hasShrinkwrap":false,"publish_time":1589276575101,"_cnpm_publish_time":1589276575101},"7.0.0":{"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,"publish_time":1555295211629,"_cnpm_publish_time":1555295211629},"6.0.0":{"name":"get-stdin","version":"6.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":">=4"},"scripts":{"test":"xo && ava test.js test-buffer.js && echo unicorns | node test-real.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","read"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"83c5c9f9059f0a66a6c9acef03c19546e2cb175b","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin#readme","_id":"get-stdin@6.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==","shasum":"9e09bf712b360ab9225e812048f71fde9c89657b","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-6.0.0.tgz","fileCount":4,"unpackedSize":3503,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP8MiTaaK31/isHZleyvD33iwACWRmrpDyR568JCTFCwIgcqeKRy8efsEYdE+9uJdMiob7lF6v78D7Mad7fcXP/Ok="}],"size":1813,"noattachment":false,"key":"/get-stdin/-/get-stdin-6.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stdin_6.0.0_1520014654678_0.24714662612043314"},"_hasShrinkwrap":false,"publish_time":1520014654787,"_cnpm_publish_time":1520014654787},"5.0.1":{"name":"get-stdin","version":"5.0.1","description":"Get stdin as a string or buffer","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.12.0"},"scripts":{"test":"xo && ava test.js && echo unicorns | ava test-real.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","read"],"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"496456754b3cf8faabd320181374ef0bdb664820","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@5.0.1","_shasum":"122e161591e21ff4c52530305693f20e6393a398","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"122e161591e21ff4c52530305693f20e6393a398","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-5.0.1.tgz","integrity":"sha512-jZV7n6jGE3Gt7fgSTJoz91Ak5MuTLwMwkoYdjxuJ/AmjIsE1UC03y/IWkZCQGEvVNS9qoRNwy5BCqxImv0FVeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQqg4Lo97KfIR4U80hUr86rEbsrexv/wO2x3eqDPFSwAiEAnjZ9VtqJWQUw+4NOT2yZrWNtmeLRclhLHVVi3hoI+1E="}],"size":1903,"noattachment":false,"key":"/get-stdin/-/get-stdin-5.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"publish_time":1447260069677,"_cnpm_publish_time":1447260069677},"5.0.0":{"name":"get-stdin","version":"5.0.0","description":"Get stdin as a string or buffer","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.12.0"},"scripts":{"test":"xo && ava test.js test-buffer.js && echo unicorns | ava test-real.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","read"],"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","xo":"*"},"gitHead":"3847c3da6c8c78b8edcc12dd41c8a754a92d664c","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@5.0.0","_shasum":"92ac421f64f6c12a1f9612c092fbd661989272d3","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"92ac421f64f6c12a1f9612c092fbd661989272d3","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-5.0.0.tgz","integrity":"sha512-xzcsxi9QNQBW7xpU8s9Xf4BIqFpWvceS4Erl3tBTKrh2yvnnTm9WUd3P3cBYNXQuFiebaOGPyI5UyPH+vjezUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD59OIrZPlQljGUarb4ZmTDxaMCZLw+ZR4GNQudD21v5QIgWg+4HAFXlDBSw2vVWBi1cGk8g9WKNJ3QwTD664xCqvY="}],"size":1707,"noattachment":false,"key":"/get-stdin/-/get-stdin-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"publish_time":1441001199962,"_cnpm_publish_time":1441001199962},"4.0.1":{"name":"get-stdin","version":"4.0.1","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js && node test-buffer.js && echo unicorns | node test-real.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","stream"],"devDependencies":{"ava":"0.0.4","buffer-equal":"0.0.1"},"gitHead":"65c744975229b25d6cc5c7546f49b6ad9099553f","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@4.0.1","_shasum":"b968c6b0a04384324902e8bf1a5df32579a450fe","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"b968c6b0a04384324902e8bf1a5df32579a450fe","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-4.0.1.tgz","integrity":"sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1hK+9h0Ba/D3T93vLiJ3u0W3IJCgKX9f7yz9tOaQgZAiEAhmkyHndLZGrkpFhdHn5FWjcCdMV6xd0IHyxc7n8T04Y="}],"size":978,"noattachment":false,"key":"/get-stdin/-/get-stdin-4.0.1.tgz"},"directories":{},"publish_time":1421761124238,"_cnpm_publish_time":1421761124238},"4.0.0":{"name":"get-stdin","version":"4.0.0","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js && node test-buffer.js && echo unicorns | node test-real.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","stream"],"devDependencies":{"ava":"0.0.4","buffer-equal":"0.0.1"},"gitHead":"9481e1bb73d7f3c77683526ed092295a5aed9e21","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@4.0.0","_shasum":"ed997f6a9616103a6e4f230f60985b96d99e4938","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"ed997f6a9616103a6e4f230f60985b96d99e4938","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-4.0.0.tgz","integrity":"sha512-WMoSYqF9Fi520sUa15jb/4pynqPJ/34CwJdJ/TuzhAf6KFSwbYLSe8AH//8g27s7jpxRFbZ4fW5/R99R4OWhsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxRgk0E2FfM4HPBRVPjkOCzy2SJb8HjwmXYqGgIILpywIgJdSVl345so3QtpURxs1uDvzzRFVV+ssiwFHqwkNVwGE="}],"size":967,"noattachment":false,"key":"/get-stdin/-/get-stdin-4.0.0.tgz"},"directories":{},"publish_time":1421674963566,"_cnpm_publish_time":1421674963566},"3.0.2":{"name":"get-stdin","version":"3.0.2","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js && echo unicorns | node test2.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","stream"],"devDependencies":{"ava":"0.0.4","buffer-equal":"0.0.1"},"gitHead":"e0fcd0d37027d6832011b4ee08ebb6b987dab4d6","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@3.0.2","_shasum":"c1ced24b9039b38ded85bdf161e57713b6dd4abe","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"c1ced24b9039b38ded85bdf161e57713b6dd4abe","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-3.0.2.tgz","integrity":"sha512-jpAk+A3NUGL/O4N3pwG1Ld3PDqOxTkuAA/HoVHwutXsqW/qYcc4YSgccFpPlg/qbNhZ33ybFhJjbJqRZhryolQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnZ/Sqc8bKkoRyQUUC6aPNcRgFotgr5n4GWsGXvj9aoAIhALJ+Nuzx1d7E/H47AxH2b5lWia77J7APXPApbNVeorlj"}],"size":933,"noattachment":false,"key":"/get-stdin/-/get-stdin-3.0.2.tgz"},"directories":{},"publish_time":1416742883570,"_cnpm_publish_time":1416742883570},"3.0.1":{"name":"get-stdin","version":"3.0.1","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","stream"],"devDependencies":{"ava":"0.0.4","buffer-equal":"0.0.1"},"gitHead":"20ccfccaae13b8c2b92f6e42298f81915b2d74e3","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@3.0.1","_shasum":"424900dd45819cc0d66ee51344234350a606c6a3","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"424900dd45819cc0d66ee51344234350a606c6a3","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-3.0.1.tgz","integrity":"sha512-claTFmEvrOr5wOpnqwppgR6GMvpm7JiQMPZpRt8/DfGnj6ZV9XyEFM8WPf5UrRjy/2IzyPjgqEaAT38Lfwt5hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqZWc0sohCsiG/HWCYkYmnGkBqTmhQKNV9Pvm356jRqAiEA4p+QtO0fblH8UaKo3xq7EywIm24U2yZxN14UvvXiPgg="}],"size":923,"noattachment":false,"key":"/get-stdin/-/get-stdin-3.0.1.tgz"},"directories":{},"publish_time":1416732639465,"_cnpm_publish_time":1416732639465},"3.0.0":{"name":"get-stdin","version":"3.0.0","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"echo unicorns | node test.js && echo unicorns | node test-buffer.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","stream"],"devDependencies":{"ava":"0.0.4","buffer-equal":"0.0.1"},"gitHead":"63ffcf5056f8fb74634e79d80581c94249bde14b","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@3.0.0","_shasum":"f4e8c8fafabf875e6dfebffd3e057a3f8a53310f","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"f4e8c8fafabf875e6dfebffd3e057a3f8a53310f","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-3.0.0.tgz","integrity":"sha512-ynjRz5gg+0ZdsbQnb99tlke66jkfqWIP+glIl1qv7dEQqhBegHsctC7YOFzFOO0ekIaDkrDnpWfghatJ0xj4AQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOOhzSxhTgYEHwKbf8RS7GCIGdOuoKb7iCY0bBT18DmwIgYOy38MZcq6lf3iEOYMnYlESL+KWZ9Xr38dPTqlk4BDQ="}],"size":891,"noattachment":false,"key":"/get-stdin/-/get-stdin-3.0.0.tgz"},"directories":{},"publish_time":1408303524108,"_cnpm_publish_time":1408303524108},"2.0.0":{"name":"get-stdin","version":"2.0.0","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"echo unicorns | node test.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","stream"],"devDependencies":{"ava":"0.0.3","buffer-equal":"0.0.1"},"gitHead":"22fe6fcc0f2d1143a461c4f2b3c58c710d1829fa","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@2.0.0","_shasum":"868c6d29a61b9e144d0cf52ca1a69420b89da9f2","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"868c6d29a61b9e144d0cf52ca1a69420b89da9f2","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-2.0.0.tgz","integrity":"sha512-qA7PX/Q6s82jfhbcGNwRdcGsKqlGyu4GO+zk724QrrNOHbYCrxSe3qQULq439yEDGSuTK0OHeStamcLKxdIrIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGduWJ3sM4NWHWdArmcyl3Q91oQvF4I3f6EMTuhn0AJAiAQ+ZkGB7nk7U7zXiNdoD1zrjEtt5uvnEFVSTQ4Bin+Hw=="}],"size":775,"noattachment":false,"key":"/get-stdin/-/get-stdin-2.0.0.tgz"},"directories":{},"publish_time":1408032640720,"_cnpm_publish_time":1408032640720},"1.0.0":{"name":"get-stdin","version":"1.0.0","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"echo unicorns | node test.js"},"files":["index.js"],"keywords":["std","stdin","stdio","concat","buffer","stream","process","stream"],"devDependencies":{"ava":"0.0.3"},"gitHead":"0932774723e6f0d56818927ddea5931462413c15","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@1.0.0","_shasum":"00bd5a494c81c372f5629bea103bbffe7a1da3ce","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"00bd5a494c81c372f5629bea103bbffe7a1da3ce","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-1.0.0.tgz","integrity":"sha512-eDz4AT1jJ19lrT4fl+3TxUUjizqqRmvx4Se9MdYurQWgTiHY8vcbba3bDNmEpA4ACvLzmWT1Ewuk8zHpjDalkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+SU3LNpL5AR2rCZ8A0QwR8OpM5YtXdybSr++/rtunyQIhANsvzI+SXsOXZ9C72aDo/WwU+KiZ/Dtrdnq52IFyIL5O"}],"size":767,"noattachment":false,"key":"/get-stdin/-/get-stdin-1.0.0.tgz"},"directories":{},"publish_time":1407168374910,"_cnpm_publish_time":1407168374910},"0.1.0":{"name":"get-stdin","version":"0.1.0","description":"Easier stdin","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/get-stdin"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"echo unicorns | mocha"},"files":["index.js"],"keywords":["stdin","stdio","concat","buffer","stream"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"homepage":"https://github.com/sindresorhus/get-stdin","_id":"get-stdin@0.1.0","dist":{"shasum":"5998af24aafc802d15c82c685657eeb8b10d4a91","tarball":"http://registry-npm.ywwl.com/get-stdin/download/get-stdin-0.1.0.tgz","integrity":"sha512-/WBu3IaQZxE3bs3BhBmR10ipDY4pjN+U4EZgXULa1eqKA0B/Lka/MVoAqhTVYBkkRlCrEGDOU9itrzIgm9Ksng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmDx1eNDow57xLL2slf30BjsYOTg2ovY3uv9f4PEGCowIgIRB/ufdb389Sv5/QxPYDkT26QvmMJtbm0cvZ1rXPREo="}],"size":759,"noattachment":false,"key":"/get-stdin/-/get-stdin-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.26","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"publish_time":1392316528728,"_cnpm_publish_time":1392316528728}},"readme":"# get-stdin\n\n> Get [stdin](https://nodejs.org/api/process.html#process_process_stdin) as a string or `Uint8Array`\n\n## Install\n\n```sh\nnpm 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\nRun the script with piped input:\n\n```\n$ echo unicorns | node example.js\nunicorns\n```\n\nOr run interactively by allowing TTY input and type input, then press Ctrl+D (Unix) or Ctrl+Z (Windows) to signal end of input:\n\n```js\n// example.js\nimport getStdin from 'get-stdin';\n\nconsole.log(await getStdin({allowTTY: true}));\n//=> 'unicorns'\n```\n\n```\n$ node example.js\nunicorns\n<Ctrl+D>\nunicorns\n```\n\n## API\n\nBoth methods return 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\nBy default, in a TTY context the promise resolves with an empty string or `Uint8Array`. This avoids hanging CLIs that only want piped input and lets them fall back to other input methods. An empty string or `Uint8Array` means no input was read. To read from a TTY, set `allowTTY: true` and explicitly close `stdin` (Ctrl+D on Unix, Ctrl+Z on Windows).\n\n### getStdin(options?)\n\nGet `stdin` as a `string`.\n\n#### options\n\nType: `object`\n\n##### allowTTY\n\nType: `boolean`\\\nDefault: `false`\n\nAllow reading from a TTY.\n\nUse this when you want interactive behavior like `cat` or other Unix filters that wait for EOF even without piped input. The default resolves immediately in a TTY to avoid hanging CLIs that only want piped input and lets them fall back to other input methods.\n\n##### stdin\n\nType: `Readable stream`\\\nDefault: `process.stdin`\n\nStream to read from.\n\nUseful for tests or to read from a custom stream.\n\n### getStdin.buffer(options?)\n\nGet `stdin` as a `Uint8Array`.\n\n#### options\n\nType: `object`\n\n##### allowTTY\n\nType: `boolean`\\\nDefault: `false`\n\nAllow reading from a TTY.\n\nUse this when you want interactive behavior like `cat` or other Unix filters that wait for EOF even without piped input. The default resolves immediately in a TTY to avoid hanging CLIs that only want piped input and lets them fall back to other input methods.\n\n##### stdin\n\nType: `Readable stream`\\\nDefault: `process.stdin`\n\nStream to read from.\n\nUseful for tests or to read from a custom stream.\n\n## Tip\n\nYou can now accomplish this natively in Node.js using [`streamConsumers.text()`](https://nodejs.org/api/webstreams.html#streamconsumerstextstream) or [`streamConsumers.buffer()`](https://nodejs.org/api/webstreams.html#streamconsumersbufferstream):\n\n```js\n// example.js\nimport {text} from 'node:stream/consumers';\n\nconsole.log(await text(process.stdin))\n//=> 'unicorns'\n````\n\n```\n$ echo unicorns | node example.js\nunicorns\n```\n\n## Related\n\n- [get-stream](https://github.com/sindresorhus/get-stream) - Get a stream as a string or buffer\n","_attachments":{},"homepage":"https://github.com/sindresorhus/get-stdin#readme","bugs":{"url":"https://github.com/sindresorhus/get-stdin/issues"},"license":"MIT"}