|
|
vor 2 Wochen | |
|---|---|---|
| .. | ||
| index.js | vor 2 Wochen | |
| license | vor 2 Wochen | |
| package.json | vor 2 Wochen | |
| readme.md | vor 2 Wochen | |
Toggle the CLI cursor
The cursor is gracefully restored if the process exits.
$ npm install --save cli-cursor
const cliCursor = require('cli-cursor');
cliCursor.hide();
const unicornsAreAwesome = true;
cliCursor.toggle(unicornsAreAwesome);
force is useful to show or hide the cursor based an a boolean.
MIT © Sindre Sorhus