--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
26
node_modules/cli-cursor/index.js
generated
vendored
Normal file
26
node_modules/cli-cursor/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
'use strict';
|
||||
var restoreCursor = require('restore-cursor');
|
||||
var hidden = false;
|
||||
|
||||
exports.show = function () {
|
||||
hidden = false;
|
||||
process.stdout.write('\u001b[?25h');
|
||||
};
|
||||
|
||||
exports.hide = function () {
|
||||
restoreCursor();
|
||||
hidden = true;
|
||||
process.stdout.write('\u001b[?25l');
|
||||
};
|
||||
|
||||
exports.toggle = function (force) {
|
||||
if (force !== undefined) {
|
||||
hidden = force;
|
||||
}
|
||||
|
||||
if (hidden) {
|
||||
exports.show();
|
||||
} else {
|
||||
exports.hide();
|
||||
}
|
||||
};
|
||||
21
node_modules/cli-cursor/license
generated
vendored
Normal file
21
node_modules/cli-cursor/license
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
106
node_modules/cli-cursor/package.json
generated
vendored
Normal file
106
node_modules/cli-cursor/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "cli-cursor@^1.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "cli-cursor",
|
||||
"name": "cli-cursor",
|
||||
"rawSpec": "^1.0.1",
|
||||
"spec": ">=1.0.1 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/jose/Documents/GitHub/Mods/node_modules/inquirer"
|
||||
]
|
||||
],
|
||||
"_from": "cli-cursor@>=1.0.1 <2.0.0",
|
||||
"_id": "cli-cursor@1.0.2",
|
||||
"_inCache": true,
|
||||
"_location": "/cli-cursor",
|
||||
"_nodeVersion": "4.1.0",
|
||||
"_npmUser": {
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.14.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "cli-cursor@^1.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "cli-cursor",
|
||||
"name": "cli-cursor",
|
||||
"rawSpec": "^1.0.1",
|
||||
"spec": ">=1.0.1 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/inquirer"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz",
|
||||
"_shasum": "64da3f7d56a54412e59794bd62dc35295e8f2987",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "cli-cursor@^1.0.1",
|
||||
"_where": "/Users/jose/Documents/GitHub/Mods/node_modules/inquirer",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"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": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "64da3f7d56a54412e59794bd62dc35295e8f2987",
|
||||
"tarball": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "6be5a384d90278c66aa30db5ecdec8dc68f17d4f",
|
||||
"homepage": "https://github.com/sindresorhus/cli-cursor#readme",
|
||||
"keywords": [
|
||||
"cli",
|
||||
"cursor",
|
||||
"ansi",
|
||||
"toggle",
|
||||
"display",
|
||||
"show",
|
||||
"hide",
|
||||
"term",
|
||||
"terminal",
|
||||
"console",
|
||||
"tty",
|
||||
"shell",
|
||||
"command-line"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "cli-cursor",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/cli-cursor.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
||||
40
node_modules/cli-cursor/readme.md
generated
vendored
Normal file
40
node_modules/cli-cursor/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# cli-cursor [](https://travis-ci.org/sindresorhus/cli-cursor)
|
||||
|
||||
> Toggle the CLI cursor
|
||||
|
||||
The cursor is [gracefully restored](https://github.com/sindresorhus/restore-cursor) if the process exits.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save cli-cursor
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
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](http://sindresorhus.com)
|
||||
Loading…
Reference in a new issue