{"name":"log-utils","description":"Basic logging utils: colors, symbols and timestamp.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/log-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/log-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/log-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"ansi-colors":"^0.1.0","error-symbol":"^0.1.0","info-symbol":"^0.1.0","success-symbol":"^0.1.0","time-stamp":"^1.0.1","warning-symbol":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["ansi","chalk","check","checkmark","cli","color","colors","command","console","cyan","error","green","info","line","log","red","stamp","success","terminal","time","time-stamp","timestamp","util","utility","utils","warn","warning","yellow"],"verb":{"related":{"list":["ansi-colors","error-symbol","info-symbol","success-symbol","warning-symbol"]},"layout":"default","reflinks":["ansi-colors","verb"],"plugins":["gulp-format-md"]},"lintDeps":{"ignore":[]},"gitHead":"f23b136921c2036249808065577aa6e7ad2e2ef6","_id":"log-utils@0.1.3","_shasum":"2574cf88b1da62a24974d1cb555541289ef293d0","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2574cf88b1da62a24974d1cb555541289ef293d0","tarball":"http://registry-npm.ywwl.com/log-utils/download/log-utils-0.1.3.tgz","integrity":"sha512-OoeaakYTb6G5PRWSIZytM33F7YE9IIqot77+ePpB1MBvNDSJ8on6u39b4SNpmRpi3pJrIe1l4F4h9E6YNB5VLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHxVaTKWDzdUJxpKWGY+q63fSFrUAG+QK4Y/d8c1qSkoCIQDTiI2WvBIVygkCa2DeYsptYvAcTEWPkWqqnUNvgq8jSg=="}],"size":3892,"noattachment":false,"key":"/log-utils/-/log-utils-0.1.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/log-utils-0.1.3.tgz_1461783348556_0.027330406242981553"},"directories":{},"readme":"# log-utils [![NPM version](https://img.shields.io/npm/v/log-utils.svg?style=flat)](https://www.npmjs.com/package/log-utils) [![NPM monthly downloads](https://img.shields.io/npm/dm/log-utils.svg?style=flat)](https://npmjs.org/package/log-utils) [![NPM total downloads](https://img.shields.io/npm/dt/log-utils.svg?style=flat)](https://npmjs.org/package/log-utils) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/log-utils.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/log-utils)\n\n> Tiny wrapper around ansi-colors to add colored symbols and a timestamp.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save log-utils\n```\n\n## Usage\n\n```js\nconst log = require('log-utils');\n```\n\n## API\n\n### [.error](index.js#L23)\n\nGet a red error symbol.\n\n**Example**\n\n```js\nconsole.log(log.error); //=> ✖\n```\n\n### [.info](index.js#L35)\n\nGet a cyan info symbol.\n\n**Example**\n\n```js\nconsole.log(log.info); //=> ℹ\n```\n\n### [.success](index.js#L47)\n\nGet a green success symbol.\n\n**Example**\n\n```js\nconsole.log(log.success); //=> ✔\n```\n\n### [.warning](index.js#L59)\n\nGet a yellow warning symbol.\n\n**Example**\n\n```js\nconsole.log(log.warning); //=> ⚠\n```\n\n### [.timestamp](index.js#L71)\n\nGet a formatted timestamp.\n\n**Example**\n\n```js\nconsole.log(log.timestamp); //=> [15:27:46]\n```\n\n### [.ok](index.js#L93)\n\nReturns a formatted string prefixed by a green check.\n\n**Example**\n\n```js\nconsole.log(log.ok('   foo'));\nconsole.log(log.ok('  foo'));\nconsole.log(log.ok(' foo'));\nconsole.log(log.ok('foo'));\n// Results in:\n//    ✔ foo\n//   ✔ foo\n//  ✔ foo\n// ✔ foo\n```\n\n### [.heading](index.js#L112)\n\nMake the given text bold and underlined.\n\n**Example**\n\n```js\nconsole.log(log.heading('foo'));\n// or\nconsole.log(log.heading('foo', 'bar'));\n```\n\n### Colors\n\nAvailable colors from [ansi-colors](https://github.com/doowb/ansi-colors):\n\n## Changes\n\n**v0.2.0 (2016-07-16)**\n\n* `removed`: all spinner methods\n\n**v0.1.5 (2016-07-16)**\n\n* `added`: `.header` method\n* `fixed`: `.ok` method, so that whitespace is respected\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n[ansi-colors](https://www.npmjs.com/package/ansi-colors): Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in… [more](https://github.com/doowb/ansi-colors) | [homepage](https://github.com/doowb/ansi-colors \"Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 23 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 5  | [doowb](https://github.com/doowb) |  \n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on November 17, 2018._","publish_time":1461783350977,"_cnpm_publish_time":1461783350977,"dist-tags":{"latest":"1.0.0"}}