|
||||
---|---|---|---|---|
.. | ||||
index.js | 11e3a9652a | преди 7 години | ||
license | 11e3a9652a | преди 7 години | ||
package.json | 11e3a9652a | преди 7 години | ||
readme.md | 11e3a9652a | преди 7 години |
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 on a boolean.
Type: Stream
Default: process.stderr
MIT © Sindre Sorhus