You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buffer_platform/node_modules/stdin-discarder
Lxy bceb57c0c3
feat: add trade reflection system data models and preset tags initialization
2 weeks ago
..
index.d.ts feat: add trade reflection system data models and preset tags initialization 2 weeks ago
index.js feat: add trade reflection system data models and preset tags initialization 2 weeks ago
license feat: add trade reflection system data models and preset tags initialization 2 weeks ago
package.json feat: add trade reflection system data models and preset tags initialization 2 weeks ago
readme.md feat: add trade reflection system data models and preset tags initialization 2 weeks ago

readme.md

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 for its discardStdin option.

Install

npm install stdin-discarder

Usage

import stdinDiscarder from 'stdin-discarder';

stdinDiscarder.start();

API

stdinDiscarder.start()

Start discarding stdin.

stdinDiscarder.stop()

Stop discarding stdin.

  • hook-std - Hook and modify stdout and stderr