%PDF- %PDF-
| Direktori : /proc/self/root/usr/lib/node_modules/pm2/node_modules/pm2-multimeter/ |
| Current File : //proc/self/root/usr/lib/node_modules/pm2/node_modules/pm2-multimeter/package.json |
{
"_args": [
[
{
"raw": "pm2-multimeter@^0.1.2",
"scope": null,
"escapedName": "pm2-multimeter",
"name": "pm2-multimeter",
"rawSpec": "^0.1.2",
"spec": ">=0.1.2 <0.2.0",
"type": "range"
},
"/usr/lib/node_modules/pm2"
]
],
"_from": "pm2-multimeter@>=0.1.2 <0.2.0",
"_id": "pm2-multimeter@0.1.2",
"_inCache": true,
"_location": "/pm2/pm2-multimeter",
"_npmUser": {
"name": "tknew",
"email": "strzelewicz.alexandre@gmail.com"
},
"_npmVersion": "1.2.0",
"_phantomChildren": {},
"_requested": {
"raw": "pm2-multimeter@^0.1.2",
"scope": null,
"escapedName": "pm2-multimeter",
"name": "pm2-multimeter",
"rawSpec": "^0.1.2",
"spec": ">=0.1.2 <0.2.0",
"type": "range"
},
"_requiredBy": [
"/pm2"
],
"_resolved": "https://registry.npmjs.org/pm2-multimeter/-/pm2-multimeter-0.1.2.tgz",
"_shasum": "1a1e55153d41a05534cea23cfe860abaa0eb4ace",
"_shrinkwrap": null,
"_spec": "pm2-multimeter@^0.1.2",
"_where": "/usr/lib/node_modules/pm2",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"bugs": {
"url": "https://github.com/Unitech/node-multimeter/issues"
},
"dependencies": {
"charm": "~0.1.1"
},
"description": "render multiple progress bars at once on the terminal with eventlimit maxed",
"devDependencies": {},
"directories": {
"lib": ".",
"example": "example",
"test": "test"
},
"dist": {
"shasum": "1a1e55153d41a05534cea23cfe860abaa0eb4ace",
"tarball": "https://registry.npmjs.org/pm2-multimeter/-/pm2-multimeter-0.1.2.tgz"
},
"engine": {
"node": ">=0.4"
},
"homepage": "https://github.com/Unitech/node-multimeter#readme",
"keywords": [
"progress",
"bar",
"status",
"meter",
"terminal",
"console",
"ansi"
],
"license": "MIT/X11",
"main": "index.js",
"maintainers": [
{
"name": "tknew",
"email": "strzelewicz.alexandre@gmail.com"
}
],
"name": "pm2-multimeter",
"optionalDependencies": {},
"readme": "multimeter\n==========\n\nControl multiple ANSI progress bars on the terminal.\n\n\n\n\n\nexample\n=======\n\n````javascript\nvar multimeter = require('multimeter');\nvar multi = multimeter(process);\n\nmulti.drop(function (bar) {\n var iv = setInterval(function () {\n var p = bar.percent();\n bar.percent(p + 1);\n \n if (p >= 100) clearInterval(iv);\n }, 25);\n});\n````\n\nmethods\n=======\n\nvar multimeter = require('multimeter');\n\nvar multi = multimeter(stream, ...)\n-----------------------------------\n\nCreate a new multimeter handle on the supplied stream/process objects, which\nwill be passed directly to [charm](https://github.com/substack/node-charm).\n\nIf you pass in a charm object that will be used instead of creating a new one.\n\nvar bar = multi(x, y, params)\n-----------------------------\n\nCreate a new progress bar at `(x,y)` with `params` which default to:\n\n* width : 10\n* before : '['\n* after : '] '\n* solid : { background : 'blue', foreground : 'white', text : '|' }\n* empty : { background : null, foreground : null, text : ' ' }\n\nIf `y` is negative or `'-0'` it will be treated as a relative coordinate.\n\nvar bar = multi.rel(x, y, params)\n---------------------------------\n\nCreate a new progress bar at an absolute `x` and relative `y` coordinate with\nrespect to the present `multi.offset`.\n\nmulti.drop(params, cb)\n----------------------\n\nCreate a new progress bar at the present cursor location. The `bar` object will\nbe passed to `cb(bar)` once the cursor location has been determined. \n\nmulti.on(...), multi.removeListener(...), multi.destroy(...), multi.write(...)\n------------------------------------------------------------------------------\n\nCall event emitter functions on the underlying `charm` object.\n\nmulti.offset\n------------\n\nThis getter/setter controls the positioning for relative progress bars.\n\nIncrement this value whenever you write a newline to the stream to prevent the\npending progress bars from drifting down from their original positions.\n\nbar.percent(p, msg=p + ' %')\n----------------------------\n\nUpdate the progress bar to `p` percent, a value between 0 and 100, inclusive.\n\nThe text to the right of the progress bar will be set to `msg`.\n\nbar.ratio(n, d, msg=n + ' / ' + d)\n----------------------------------\n\nUpdate the progress bar with a ratio, `n/d`.\n\nThe text to the right of the progress bar will be set to `msg`.\n\nattributes\n==========\n\nmulti.charm\n-----------\n\nThe [charm](https://github.com/substack/node-charm) object used internally to\ndraw the progress bars.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n npm install multimeter\n",
"readmeFilename": "README.markdown",
"repository": {
"type": "git",
"url": "git+https://github.com/Unitech/node-multimeter.git"
},
"version": "0.1.2"
}