UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS and CSS.

81 lines (80 loc) 2.71 kB
{ "_args": [ [ "cli-cursor@https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", "/Users/gajus/Documents/dev/canonical-code-style/canonical" ] ], "_from": "cli-cursor@>=1.0.1 <2.0.0", "_id": "cli-cursor@1.0.2", "_inCache": true, "_location": "/cli-cursor", "_phantomChildren": {}, "_requested": { "name": "cli-cursor", "raw": "cli-cursor@https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", "rawSpec": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", "scope": null, "spec": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", "type": "remote" }, "_requiredBy": [ "/inquirer" ], "_resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", "_shasum": "64da3f7d56a54412e59794bd62dc35295e8f2987", "_shrinkwrap": null, "_spec": "cli-cursor@https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", "_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical", "author": { "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/cli-cursor/issues" }, "dependencies": { "restore-cursor": "^1.0.1" }, "description": "Toggle the CLI cursor", "devDependencies": { "ava": "*", "xo": "*" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/cli-cursor#readme", "keywords": [ "ansi", "cli", "command-line", "console", "cursor", "display", "hide", "shell", "show", "term", "terminal", "toggle", "tty" ], "license": "MIT", "name": "cli-cursor", "optionalDependencies": {}, "readme": "# cli-cursor [![Build Status](https://travis-ci.org/sindresorhus/cli-cursor.svg?branch=master)](https://travis-ci.org/sindresorhus/cli-cursor)\n\n> Toggle the CLI cursor\n\nThe cursor is [gracefully restored](https://github.com/sindresorhus/restore-cursor) if the process exits.\n\n\n## Install\n\n```\n$ npm install --save cli-cursor\n```\n\n\n## Usage\n\n```js\nconst cliCursor = require('cli-cursor');\n\ncliCursor.hide();\n\nconst unicornsAreAwesome = true;\ncliCursor.toggle(unicornsAreAwesome);\n```\n\n\n## API\n\n### .show()\n\n### .hide()\n\n### .toggle(force)\n\n`force` is useful to show or hide the cursor based an a boolean.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/cli-cursor.git" }, "scripts": { "test": "xo && ava" }, "version": "1.0.2" }