{"name":"stdin-discarder","version":"0.3.0","keywords":["stdin","process","standard","discard","ignore","input"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"stdin-discarder@0.3.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/stdin-discarder#readme","bugs":{"url":"https://github.com/sindresorhus/stdin-discarder/issues"},"dist":{"shasum":"8d1da878b407a9a4818e704c10701204900456f9","tarball":"http://registry-npm.ywwl.com/stdin-discarder/download/stdin-discarder-0.3.0.tgz","fileCount":5,"integrity":"sha512-zR54e4v3B5LgJDngfCQZZ3YQ0SzkypA7NXOGpc2qQqai8UE0j2XgvLQJhT9dg7SbDH/Yv6DYmu6uQqHAvwADaA==","signatures":[{"sig":"MEYCIQD9DqRbCJrrYYl5thv4/1Z2lGW+ED3YS8imzz9wiFQVFgIhAO0/205henx/kzZ/klvgQuI00rutrKqXP4AB+nh5RNPC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4590,"size":2239,"noattachment":false,"key":"/stdin-discarder/-/stdin-discarder-0.3.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"be4e918a52194e8c77adad9b8e15734ae768d9e1","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/stdin-discarder.git","type":"git"},"_npmVersion":"11.6.1","description":"Discard stdin input except for Ctrl+C","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^6.0.1","tsd":"^0.29.0"},"_npmOperationalInternal":{"tmp":"tmp/stdin-discarder_0.3.0_1762280055403_0.3617932566223958","host":"s3://npm-registry-packages-npm-production"},"readme":"# stdin-discarder\n\n> Discard stdin input except for Ctrl+C\n\nThis can be useful to prevent stdin input from interfering with stdout output. For example, you are showing a spinner, and if the user presses a key, it would interfere with the spinner, causing visual glitches. This package prevents such problems.\n\nThis has no effect on Windows as there is no good way to implement discarding stdin properly there.\n\nThis package is used by [`ora`](https://github.com/sindresorhus/ora) for its [`discardStdin`](https://github.com/sindresorhus/ora#discardstdin) option.\n\n## Install\n\n```sh\nnpm install stdin-discarder\n```\n\n## Usage\n\n```js\nimport stdinDiscarder from 'stdin-discarder';\n\nstdinDiscarder.start();\n```\n\n## API\n\n### stdinDiscarder.start()\n\nStart discarding stdin.\n\n### stdinDiscarder.stop()\n\nStop discarding stdin.\n\n## Related\n\n- [hook-std](https://github.com/sindresorhus/hook-std) - Hook and modify stdout and stderr\n","publish_time":1762280055588,"_cnpm_publish_time":1762280055588,"dist-tags":{"latest":"0.3.2"}}