node/tools/eslint/node_modules/cli-cursor
silverwind d9b8758f47 tools: update ESLint to 2.7.0
PR-URL: https://github.com/nodejs/node/pull/6132
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: thefourtheye <thechargingvolcano@gmail.com>
2016-04-20 16:24:21 -07:00
..
index.js tools: update eslint to v1.10.3 2016-01-14 22:20:14 +11:00
license tools: update eslint to v1.10.3 2016-01-14 22:20:14 +11:00
package.json tools: update ESLint to 2.7.0 2016-04-20 16:24:21 -07:00
readme.md tools: update eslint to v1.10.3 2016-01-14 22:20:14 +11:00

cli-cursor Build Status

Toggle the CLI cursor

The cursor is gracefully restored if the process exits.

Install

$ npm install --save cli-cursor

Usage

const cliCursor = require('cli-cursor');

cliCursor.hide();

const unicornsAreAwesome = true;
cliCursor.toggle(unicornsAreAwesome);

API

.show()

.hide()

.toggle(force)

force is useful to show or hide the cursor based an a boolean.

License

MIT © Sindre Sorhus