{"name":"log-horizon","version":"0.0.0","description":"A fancy logger for CLI apps.","repository":{"url":"git+https://github.com/egoist/log-horizon.git","type":"git"},"main":"lib/index.js","files":["lib"],"engines":{"node":">=6"},"scripts":{"test":"npm run lint && echo 'no tests!'","lint":"xo"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","dependencies":{"log-update":"^2.3.0"},"devDependencies":{"bili":"^3.0.2","eslint-config-rem":"^3.0.0","xo":"^0.18.0"},"xo":{"extends":"rem"},"gitHead":"997c56825011652d0722dc16db61fa273feeb30b","bugs":{"url":"https://github.com/egoist/log-horizon/issues"},"homepage":"https://github.com/egoist/log-horizon#readme","_id":"log-horizon@0.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"integrity":"sha512-FJOPr5+joiZ8DrYnyYqEl/cgZf+2u9216LaUFKccIkcouvAUN1LlIDuz6A9uHkfA6h0chKBTYEXYRI0VhY0lag==","shasum":"9f48145ce648c885ce9c55798bb6c483265b5f16","tarball":"http://registry-npm.ywwl.com/log-horizon/download/log-horizon-0.0.0.tgz","fileCount":5,"unpackedSize":6337,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG28GmDatZSdB+MXDSWKaZPEyCNPG3lugmwPaY80WGlDAiAHTziO4DcWNAj1hJzwhDkUYwlzJKKJJUqXuda350Wvag=="}],"size":2883,"noattachment":false,"key":"/log-horizon/-/log-horizon-0.0.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/log-horizon_0.0.0_1519750912373_0.7590115671937747"},"_hasShrinkwrap":false,"readme":"\n# log-horizon\n\n[![NPM version](https://img.shields.io/npm/v/log-horizon.svg?style=flat)](https://npmjs.com/package/log-horizon) [![NPM downloads](https://img.shields.io/npm/dm/log-horizon.svg?style=flat)](https://npmjs.com/package/log-horizon) [![CircleCI](https://circleci.com/gh/egoist/log-horizon/tree/master.svg?style=shield&circle-token=d372afd8d560fb9522f85d967ba19e998a8ee321)](https://circleci.com/gh/egoist/log-horizon/tree/master)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate) [![chat](https://img.shields.io/badge/chat-on%20discord-7289DA.svg?style=flat)](https://chat.egoist.moe)\n\n## Install\n\n```bash\nyarn add log-horizon\n```\n\n## Usage\n\n```js\nconst LogHorizon = require('log-horizon')\n\nconst logger = new LogHorizon()\n```\n\nCheck out the [example code](./examples/_log.js), preview:\n\n<img src=\"https://cdn.rawgit.com/egoist/93995ac552ac66d38631ed4bff1d7cc1/raw/cf167f27e4033aff5be32115c4c313ebca885703/preview-log-horizon.svg\" width=\"600\" alt=\"preview\">\n\n## API\n\n### new LogHorizon(options)\n\n### options\n\n#### options.logLevel\n\nType: `number`<br>\nDefault: `3`\n\n- `1`: `error`\n- `2`: `warn`\n- `3`: `info`\n- `4`: `debug`\n\n#### options.debug\n\nType: `boolean`\n\nA shortcut to set `options.logLevel` to `4`.\n\n#### options.quiet\n\nType: `boolean`\n\nA shortcut to set `options.logLevel` to `1`.\n\n#### options.logUpdate\n\nType: `boolean`<br>\nDefault: `true`\n\nUse `log-update` module instead of `console.log`.\n\n#### options.statusType\n\nType: `string`<br>\nDefault: `'emoji'`<br>\nPossible values: `'emoji'` `'badge'` `'text'`\n\n### Methods\n\n#### logger.setOptions(options)\n\n#### logger.success(message)\n\n#### logger.error(message)\n\n#### logger.warn(message)\n\n#### logger.debug(message)\n\n#### logger.progress(message)\n\n#### logger.log(message, update = false)\n\n#### logger.status(status, message, update = false)\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n\n## Author\n\n**log-horizon** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>\nAuthored and maintained by egoist with help from contributors ([list](https://github.com/egoist/log-horizon/contributors)).\n\n> [github.com/egoist](https://github.com/egoist) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)\n","publish_time":1519750912463,"_cnpm_publish_time":1519750912463,"dist-tags":{"latest":"0.1.2"}}