REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 944 B
Close
/home/byroehnu/.trash/node_modules11/stdin-discarder/readme.md
Text
Base64
# stdin-discarder > Discard stdin input except for Ctrl+C This 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. This has no effect on Windows as there is no good way to implement discarding stdin properly there. This package is used by [`ora`](https://github.com/sindresorhus/ora) for its [`discardStdin`](https://github.com/sindresorhus/ora#discardstdin) option. **Work in progress** ## Install ```sh npm install stdin-discarder ``` ## Usage ```js import stdinDiscarder from 'stdin-discarder'; stdinDiscarder.start(); ``` ## API ### stdinDiscarder.start() Start discarding stdin. ### stdinDiscarder.stop() Stop discarding stdin. ## Related - [hook-std](https://github.com/sindresorhus/hook-std) - Hook and modify stdout and stderr
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.d.ts
166 B
lrw-r--r--
2026-02-28 00:27:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
1.80 KB
lrw-r--r--
2026-02-28 00:26:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
license
1.09 KB
lrw-r--r--
2026-02-28 00:26:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
813 B
lrw-r--r--
2026-02-28 00:26:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.md
944 B
lrw-r--r--
2026-02-28 00:27:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).