99 lines
8.5 KiB
JSON
99 lines
8.5 KiB
JSON
|
{
|
|||
|
"_args": [
|
|||
|
[
|
|||
|
{
|
|||
|
"raw": "gauge@~1.2.5",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "gauge",
|
|||
|
"name": "gauge",
|
|||
|
"rawSpec": "~1.2.5",
|
|||
|
"spec": ">=1.2.5 <1.3.0",
|
|||
|
"type": "range"
|
|||
|
},
|
|||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/npmlog"
|
|||
|
]
|
|||
|
],
|
|||
|
"_from": "gauge@>=1.2.5 <1.3.0",
|
|||
|
"_id": "gauge@1.2.7",
|
|||
|
"_inCache": true,
|
|||
|
"_location": "/gauge",
|
|||
|
"_nodeVersion": "4.2.2",
|
|||
|
"_npmOperationalInternal": {
|
|||
|
"host": "packages-9-west.internal.npmjs.com",
|
|||
|
"tmp": "tmp/gauge-1.2.7.tgz_1455835409513_0.6293477965518832"
|
|||
|
},
|
|||
|
"_npmUser": {
|
|||
|
"name": "iarna",
|
|||
|
"email": "me@re-becca.org"
|
|||
|
},
|
|||
|
"_npmVersion": "3.7.2",
|
|||
|
"_phantomChildren": {},
|
|||
|
"_requested": {
|
|||
|
"raw": "gauge@~1.2.5",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "gauge",
|
|||
|
"name": "gauge",
|
|||
|
"rawSpec": "~1.2.5",
|
|||
|
"spec": ">=1.2.5 <1.3.0",
|
|||
|
"type": "range"
|
|||
|
},
|
|||
|
"_requiredBy": [
|
|||
|
"/npmlog"
|
|||
|
],
|
|||
|
"_resolved": "https://registry.npmjs.org/gauge/-/gauge-1.2.7.tgz",
|
|||
|
"_shasum": "e9cec5483d3d4ee0ef44b60a7d99e4935e136d93",
|
|||
|
"_shrinkwrap": null,
|
|||
|
"_spec": "gauge@~1.2.5",
|
|||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/npmlog",
|
|||
|
"author": {
|
|||
|
"name": "Rebecca Turner",
|
|||
|
"email": "me@re-becca.org"
|
|||
|
},
|
|||
|
"bugs": {
|
|||
|
"url": "https://github.com/iarna/gauge/issues"
|
|||
|
},
|
|||
|
"dependencies": {
|
|||
|
"ansi": "^0.3.0",
|
|||
|
"has-unicode": "^2.0.0",
|
|||
|
"lodash.pad": "^4.1.0",
|
|||
|
"lodash.padend": "^4.1.0",
|
|||
|
"lodash.padstart": "^4.1.0"
|
|||
|
},
|
|||
|
"description": "A terminal based horizontal guage",
|
|||
|
"devDependencies": {
|
|||
|
"tap": "^5.6.0"
|
|||
|
},
|
|||
|
"directories": {},
|
|||
|
"dist": {
|
|||
|
"shasum": "e9cec5483d3d4ee0ef44b60a7d99e4935e136d93",
|
|||
|
"tarball": "https://registry.npmjs.org/gauge/-/gauge-1.2.7.tgz"
|
|||
|
},
|
|||
|
"gitHead": "75a7d0a4ed67489ac992ed3d211bed60376ca7c1",
|
|||
|
"homepage": "https://github.com/iarna/gauge",
|
|||
|
"keywords": [
|
|||
|
"progressbar",
|
|||
|
"progress",
|
|||
|
"gauge"
|
|||
|
],
|
|||
|
"license": "ISC",
|
|||
|
"main": "progress-bar.js",
|
|||
|
"maintainers": [
|
|||
|
{
|
|||
|
"name": "iarna",
|
|||
|
"email": "me@re-becca.org"
|
|||
|
}
|
|||
|
],
|
|||
|
"name": "gauge",
|
|||
|
"optionalDependencies": {},
|
|||
|
"readme": "gauge\n=====\n\nA nearly stateless terminal based horizontal gauge / progress bar.\n\n```javascript\nvar Gauge = require(\"gauge\")\n\nvar gauge = new Gauge()\n\ngauge.show(\"test\", 0.20)\n\ngauge.pulse(\"this\")\n\ngauge.hide()\n```\n\n![](example.png)\n\n\n### `var gauge = new Gauge([options], [ansiStream])`\n\n* **options** – *(optional)* An option object. (See [below] for details.)\n* **ansiStream** – *(optional)* A stream that's been blessed by the [ansi]\n module to include various commands for controlling the cursor in a terminal.\n\n[ansi]: https://www.npmjs.com/package/ansi\n[below]: #theme-objects\n\nConstructs a new gauge. Gauges are drawn on a single line, and are not drawn\nif the current terminal isn't a tty.\n\nIf you resize your terminal in a way that can be detected then the gauge\nwill be drawn at the new size. As a general rule, growing your terminal will\nbe clean, but shrinking your terminal will result in cruft as we don't have\nenough information to know where what we wrote previously is now located.\n\nThe **options** object can have the following properties, all of which are\noptional:\n\n* maxUpdateFrequency: defaults to 50 msec, the gauge will not be drawn more\n than once in this period of time. This applies to `show` and `pulse`\n calls, but if you `hide` and then `show` the gauge it will draw it\n regardless of time since last draw.\n* theme: defaults to Gauge.unicode` if the terminal supports\n unicode according to [has-unicode], otherwise it defaults to `Gauge.ascii`.\n Details on the [theme object](#theme-objects) are documented elsewhere.\n* template: see [documentation elsewhere](#template-objects) for\n defaults and details.\n\n[has-unicode]: https://www.npmjs.com/package/has-unicode\n\nIf **ansiStream** isn't passed in, then one will be constructed from stderr\nwith `ansi(process.stderr)`.\n\n### `gauge.show([name, [completed]])`\n\n* **name** – *(optional)* The name of the current thing contributing to progress. Defaults to the last value used, or \"\".\n* **completed** – *(optional)* The portion completed as a value between 0 and 1. Defaults to the last value used, or 0.\n\nIf `process.stdout.isTTY` is false then this does nothing. If completed is 0\nand `gauge.pulse` has never been called, then similarly nothing will be printed.\n\nIf `maxUpdateFrequency` msec haven't passed since the last call to `show` or\n`pulse` then similarly, nothing will be printed. (Actually, the update is\ndeferred until `maxUpdateFrequency` msec have passed and if nothing else has\nhappened, the gauge update will happen.)\n\n### `gauge.hide()`\n\nRemoves the gauge from the terminal.\n\n### `gauge.pulse([name])`\n\n* **name** – *(optional)* The specific thing that triggered this pulse\n\nSpins the spinner in the gauge to show output. If **name** is included then\nit will be combined with the last name passed to `gauge.show` using the\nsubsection property of the theme (typically a right facing arrow).\n\n### `gauge.disable()`\n\nHides the gauge and ignores further calls to `show` or `pulse`.\n\n### `gauge.enable()`\n\nShows the gauge and resumes updating when `show` or `pulse` is called.\n\n### `gauge.setTheme(theme)`\n\nChange the active theme, will be displayed with the next show or pulse\n\n### `gauge.setTemplate(template)`\n\nChange the active template, will be displayed with the next show or pulse\n\n### Theme Objects\n\nThere are two theme objects available as a part of the module, `Gauge.unicode` and `Gauge.ascii`.\nTheme objects have the follow properties:\n\n| Property | Unicode | ASCII |\n| ---------- | ------- | ----- |\n| startgroup | ╢ | \\| |\n| endgroup | ╟ | \\| |\n| complete | █ | # |\n| incomplete | ░ | - |\n| spinner | ▀▐▄▌ | -\\\\\\|/ |\n| subsection | → | -> |\n\n*startgroup*, *endgroup* and *subsection* can be as many characters as you want.\n\n*complete* and *incomplete* should be a single character width each.\n\n*spinner* is a list of characters to use in turn when displayin
|
|||
|
"readmeFilename": "README.md",
|
|||
|
"repository": {
|
|||
|
"type": "git",
|
|||
|
"url": "git+https://github.com/iarna/gauge.git"
|
|||
|
},
|
|||
|
"scripts": {
|
|||
|
"test": "tap test/*.js"
|
|||
|
},
|
|||
|
"version": "1.2.7"
|
|||
|
}
|