|
5 bulan lalu | |
---|---|---|
.. | ||
index.d.ts | 5 bulan lalu | |
index.js | 5 bulan lalu | |
license | 5 bulan lalu | |
package.json | 5 bulan lalu | |
readme.md | 5 bulan lalu |
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