stdin-discarder
npmv0.3.2TypeScriptDiscard stdin input except for Ctrl+C
Overview
stdin-discarder is an npm package that discard stdin input except for Ctrl+C. It is extremely widely used, with about 25.4M downloads per week and 1 known dependents in the graph. The latest version is 0.3.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need discard stdin input except for Ctrl+C and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (25.4M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of stdin-discarder.
Dependencies
Dev (3)
Used by
Popular packages that depend on stdin-discarder.
Alternatives to stdin-discarder
Check if argv has a specific flag
Open stuff like URLs, files, executables. Cross-platform.
A replacement for process.exit that ensures stdio are fully drained before exiting.
A Promise-based interface into processes created by child_process.spawn
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
A set of primitives to build Vercel Edge Runtime.
Low level bindings for creating Web Standard contexts.
Serialize/deserialize an error into a plain object
Check if the process is running inside a Docker container
Parse yes/no like values
Check if the process is running inside a container (Docker/Podman)
A family of specs for interoperable TypeScript
Frequently installed together
TypeScript definitions for node
Colored symbols for various log levels. Example: `✔︎ Success`
Spinners for use in the terminal
Get the visual width of a string - the number of columns required to display it
Version history
| Version | Published | License |
|---|---|---|
| 0.3.2latest | 3 months ago | MIT |
| 0.3.1 | 6 months ago | MIT |
| 0.3.0 | 8 months ago | MIT |
| 0.2.2 | 2 years ago | MIT |
| 0.2.1 | 2 years ago | MIT |
| 0.2.0 | 2 years ago | MIT |
| 0.1.0 | 4 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install stdin-discarder?
Run `npm install stdin-discarder` to add stdin-discarder to your npm project.
What license is stdin-discarder released under?
stdin-discarder is distributed under the MIT license.
How popular is stdin-discarder?
stdin-discarder has approximately 25,374,921 downloads per week and 1 known dependent packages.