Gem 一覧へ戻る
sindresorhus/cli-cursor(新しいタブで開きます)
主要言語: JavaScript
Toggle the CLI cursor
- star 数
- 115
- watcher 数
- 4
- fork 数
- 7
- issue 数
- 0
- 最終更新
- 2026/09/19
主要言語: JavaScript
Toggle the CLI cursor
Toggle the CLI cursor
The cursor is gracefully restored if the process exits.
npm install cli-cursor
import cliCursor from 'cli-cursor'; cliCursor.hide(); const unicornsAreAwesome = true; cliCursor.toggle(unicornsAreAwesome);
Useful for showing or hiding the cursor based on a boolean.
Type: stream.Writable
Default: process.stderr