{"_id":"babar","_rev":"3629073","name":"babar","description":"CLI bar charts","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"time":{"modified":"2024-10-21T04:01:39.000Z","created":"2013-11-24T01:44:14.909Z","0.2.3":"2022-09-09T13:25:48.023Z","0.2.2":"2022-02-17T17:33:30.396Z","0.2.0":"2017-11-21T19:41:12.569Z","0.1.0":"2017-01-12T09:59:35.368Z","0.0.3":"2014-01-14T14:13:37.269Z","0.0.2":"2013-11-24T02:00:24.574Z","0.0.1":"2013-11-24T01:44:14.909Z"},"users":{"lucasbrigida":true,"dolsup":true,"hville":true,"goliatone":true,"jamesgt":true,"andr":true,"ahmetertem":true,"akinjide":true},"author":{"name":"Stephan Florquin"},"repository":{"type":"git","url":"git+https://github.com/stephan83/babar.git"},"versions":{"0.2.3":{"name":"babar","version":"0.2.3","description":"CLI bar charts","main":"lib/babar.js","scripts":{"build:lib":"coffee -o lib -c src/babar.coffee","clean":"rimraf lib coverage","preversion":"npm run clean","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib","dev":"coffee --watch -o lib/ -c src/babar.coffee","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/stephan83/babar.git"},"keywords":["cli","bar","charts","graph","ascii"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/babar/issues"},"dependencies":{"colors":"~1.4.0"},"devDependencies":{"coffeescript":"~1.6.3","rimraf":"^3.0.2"},"gitHead":"a3525ea1e8bd6a586cbc5e7ddc914b5592ecdfed","homepage":"https://github.com/stephan83/babar#readme","_id":"babar@0.2.3","_nodeVersion":"17.8.0","_npmVersion":"8.19.1","dist":{"shasum":"25690d918deea4a4b6ea7909df9e76eb80f558c8","size":50566,"noattachment":false,"key":"/babar/-/babar-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/babar/download/babar-0.2.3.tgz"},"_npmUser":{"name":"utix","email":"orel@melix.net"},"directories":{},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babar_0.2.3_1662729947784_0.05681790602242032"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-09T13:51:11.768Z","publish_time":1662729948023,"_cnpm_publish_time":1662729948023},"0.2.2":{"name":"babar","version":"0.2.2","description":"CLI bar charts","main":"lib/babar.js","scripts":{"build:lib":"coffee -o lib -c src/babar.coffee","clean":"rimraf lib coverage","preversion":"npm run clean","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib","dev":"coffee --watch -o lib/ -c src/babar.coffee","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/stephan83/babar.git"},"keywords":["cli","bar","charts","graph","ascii"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/babar/issues"},"dependencies":{"colors":"~0.6.2"},"devDependencies":{"coffee-script":"~1.6.3","rimraf":"^2.5.4"},"gitHead":"e685047fd64ec231a56fa4c3e141373ce92d44d3","homepage":"https://github.com/stephan83/babar#readme","_id":"babar@0.2.2","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"shasum":"a2895907c6a9bab0a9c58cb4887348d2c3fe80ee","size":16084,"noattachment":false,"key":"/babar/-/babar-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babar/download/babar-0.2.2.tgz"},"_npmUser":{"name":"utix","email":"orel@melix.net"},"directories":{},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babar_0.2.2_1645119210223_0.7977641040011618"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-17T17:33:33.423Z","publish_time":1645119210396,"_cnpm_publish_time":1645119210396},"0.2.0":{"name":"babar","version":"0.2.0","description":"CLI bar charts","main":"lib/babar.js","scripts":{"build:lib":"coffee -o lib -c src/babar.coffee","clean":"rimraf lib coverage","preversion":"npm run clean","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib","dev":"coffee --watch -o lib/ -c src/babar.coffee","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/stephan83/babar.git"},"keywords":["cli","bar","charts","graph","ascii"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/babar/issues"},"dependencies":{"colors":"~0.6.2"},"devDependencies":{"coffee-script":"~1.6.3","rimraf":"^2.5.4"},"gitHead":"803c0b0e4faf178e0ddac45bc6cdcd679a0e2d79","homepage":"https://github.com/stephan83/babar#readme","_id":"babar@0.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"79bc0f029721467207f2b6baedf96b3938ad7db0","size":16037,"noattachment":false,"key":"/babar/-/babar-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babar/download/babar-0.2.0.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babar-0.2.0.tgz_1511293271417_0.9120711111463606"},"directories":{},"publish_time":1511293272569,"_hasShrinkwrap":false,"_cnpm_publish_time":1511293272569},"0.1.0":{"name":"babar","version":"0.1.0","description":"CLI bar charts","main":"lib/babar.js","scripts":{"build:lib":"coffee -o lib -c src/babar.coffee","clean":"rimraf lib coverage","preversion":"npm run clean","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib","dev":"coffee --watch -o lib/ -c src/babar.coffee","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/stephan83/babar.git"},"keywords":["cli","bar","charts","graph","ascii"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/babar/issues"},"dependencies":{"colors":"~0.6.2"},"devDependencies":{"coffee-script":"~1.6.3","rimraf":"^2.5.4"},"gitHead":"831e664860c9f80c71b51b7bffd59ff59defdd2c","homepage":"https://github.com/stephan83/babar#readme","_id":"babar@0.1.0","_shasum":"b4fdb15e6ba8ed7a4096df66f23bf6171f60efc0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"b4fdb15e6ba8ed7a4096df66f23bf6171f60efc0","size":15801,"noattachment":false,"key":"/babar/-/babar-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babar/download/babar-0.1.0.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babar-0.1.0.tgz_1484215174705_0.9853452630341053"},"directories":{},"publish_time":1484215175368,"_cnpm_publish_time":1484215175368,"_hasShrinkwrap":false},"0.0.3":{"name":"babar","version":"0.0.3","description":"CLI bar charts","main":"lib/babar.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/stephan83/babar.git"},"keywords":["cli","bar","charts","graph","ascii"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/babar/issues"},"dependencies":{"colors":"~0.6.2"},"devDependencies":{"coffee-script":"~1.6.3"},"_id":"babar@0.0.3","dist":{"shasum":"2f394d4a5918f7e1ae9e5408e9a96f3f935ee1e2","size":15426,"noattachment":false,"key":"/babar/-/babar-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/babar/download/babar-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"directories":{},"publish_time":1389708817269,"_hasShrinkwrap":false,"_cnpm_publish_time":1389708817269},"0.0.2":{"name":"babar","version":"0.0.2","description":"CLI bar charts","main":"lib/babar.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/stephan83/babar.git"},"keywords":["cli","bar","charts","graph","ascii"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/babar/issues"},"dependencies":{"colors":"~0.6.2"},"devDependencies":{"coffee-script":"~1.6.3"},"_id":"babar@0.0.2","dist":{"shasum":"70038c7b943781dbd1c477e05477b894a3e80289","size":15339,"noattachment":false,"key":"/babar/-/babar-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babar/download/babar-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"directories":{},"publish_time":1385258424574,"_hasShrinkwrap":false,"_cnpm_publish_time":1385258424574},"0.0.1":{"name":"babar","version":"0.0.1","description":"CLI bar charts","main":"lib/babar.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://://github.com/stephan83/babar.git"},"keywords":["cli","bar","charts","graph","ascii"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/babar/issues"},"dependencies":{"colors":"~0.6.2"},"devDependencies":{"coffee-script":"~1.6.3"},"_id":"babar@0.0.1","dist":{"shasum":"d5c08405ed9ed26be81a605b42363e91087b0034","size":15343,"noattachment":false,"key":"/babar/-/babar-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babar/download/babar-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"},{"name":"utix","email":""}],"directories":{},"publish_time":1385257454909,"_hasShrinkwrap":false,"_cnpm_publish_time":1385257454909}},"readme":"# Babar\n\n## CLI bar charts for node.js\n\nBabar is a simple node.js library to draw bar charts in your console.\n\n![Sample](img/sample.png)\n\nWhile it isn't an advanced charting library, it can be useful to get a rought idea of:\n\n* whether some data is random or not\n* whether some data is linear, exponential, etc ...\n\n### Features:\n\n* easy to use\n* lightweight (~100 lines of code)\n* color output\n* ASCII output\n* automatically bucketizes values (currently only averages values in a bucket)\n* MIT license\n\n### Limitations:\n\n* limited options\n* only bar charts\n* only one data set per graph\n* limited accuracy\n* only numerical labels\n* only linear axes\n\n## Installation\n\n```bash\nnpm install babar\n```\n\n## Usage\n\nBabar exposes a function whose signature expects at least an array of points, where a point is an array of two values `[x, y]`. It returns a string representation of the data which can be output to your console.\n\n```js\nvar babar = require('babar');\nconsole.log(babar([[0, 1], [1, 5], [2, 5], [3, 1], [4, 6]]));\n```\n\nWhile it does its best to render the data automatically, you can also pass along some options.\n\n```js\nvar babar = require('babar');\n\nconsole.log(babar([[0, 1], [1, 5], [2, 5], [3, 1], [4, 6]], {\n  color: 'green',\n  width: 40,\n  height: 10,\n  maxY: 10,\n  yFractions: 1\n}));\n```\n\n## Options\n\n* **caption**: specify a caption to display over the bar chart\n* **color=\"cyan\"**: specify a color ('yellow', 'cyan', 'white', 'magenta', 'green', 'red', 'grey', 'blue', or 'ascii')\n* **grid=\"black\"**: specify a color ('yellow', 'cyan', 'white', 'magenta', 'green', 'red', 'grey', 'blue')\n* **width=80**: output will fit in specified width\n* **height=15**: output will fit in specified height\n* **xFractions**: number of fractions for x labels, does its best by default\n* **yFractions**: number of fractions for y labels, does its best by default\n* **minX**: minimum x value for x axle\n* **maxX**: maximum x value for x axle\n* **minY**: minimum y value for y axle (negative values not supported yet)\n* **maxY**: maximum y value for y axle\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013 Stephan Florquin\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/stephan83/babar#readme","bugs":{"url":"https://github.com/stephan83/babar/issues"},"license":"MIT"}