caoge c760052ff9 机车状态修改 | пре 8 месеци | |
---|---|---|
.. | ||
index.js | пре 8 месеци | |
license | пре 8 месеци | |
package.json | пре 8 месеци | |
readme.md | пре 8 месеци |
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