|
|
hace 2 semanas | |
|---|---|---|
| .. | ||
| index.js | hace 2 semanas | |
| license | hace 2 semanas | |
| package.json | hace 2 semanas | |
| readme.md | hace 2 semanas | |
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