{"_id":"logging-helpers","_rev":"88932","name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:28:56.000Z","created":"2014-11-11T22:44:22.849Z","1.0.0":"2017-06-21T06:07:40.490Z","0.4.0":"2015-03-20T09:56:02.391Z","0.3.0":"2015-01-20T21:06:25.526Z","0.2.1":"2014-12-14T17:27:04.405Z","0.2.0":"2014-12-11T06:44:18.767Z","0.1.1":"2014-11-12T04:08:48.675Z","0.1.0":"2014-11-11T22:44:22.849Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/logging-helpers.git"},"versions":{"1.0.0":{"name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","version":"1.0.0","homepage":"https://github.com/helpers/logging-helpers","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/logging-helpers.git"},"bugs":{"url":"https://github.com/helpers/logging-helpers/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isobject":"^3.0.0","log-utils":"^0.2.1"},"devDependencies":{"engine-base":"^0.1.3","engine-handlebars":"^0.8.2","gulp-format-md":"^0.1.12","handlebars":"^4.0.10","mocha":"^3.4.2","templates":"^1.2.8"},"keywords":["assemble","dash","debug","docs","documentation","engine","generate","generator","handlebars","helper","helpers","inspect","lo","lo-dash","lodash","logging","markdown","template","templates","verb"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["assemble","generate","handlebars","templates","update","verb"],"related":{"list":[]}},"gitHead":"1c85a1eeb142142e18693d9122ac9d9a106e21e9","_id":"logging-helpers@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b5a37b32ad53eb0137c58c7898a47b175ddb7c36","size":4279,"noattachment":false,"key":"/logging-helpers/-/logging-helpers-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/logging-helpers/download/logging-helpers-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logging-helpers-1.0.0.tgz_1498025259478_0.0853276310954243"},"directories":{},"publish_time":1498025260490,"_cnpm_publish_time":1498025260490,"_hasShrinkwrap":false},"0.4.0":{"name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","version":"0.4.0","homepage":"https://github.com/helpers/logging-helpers","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/helpers/logging-helpers.git"},"bugs":{"url":"https://github.com/helpers/logging-helpers/issues"},"license":{"type":"MIT","url":"https://github.com/helpers/logging-helpers/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0"},"devDependencies":{"handlebars":"^3.0.0","mocha":"^2.2.1","should":"^5.2.0"},"keywords":["assemble","dash","debug","docs","documentation","engine","generate","generator","handlebars","helper","helpers","inspect","lo","lo-dash","lodash","markdown","template","templates","verb"],"gitHead":"294d094fc621cd26e606970675d4f68707f8deab","_id":"logging-helpers@0.4.0","_shasum":"00e6d5316c23767ec12e1200e4f12c5e033e7eb0","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"00e6d5316c23767ec12e1200e4f12c5e033e7eb0","size":2993,"noattachment":false,"key":"/logging-helpers/-/logging-helpers-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/logging-helpers/download/logging-helpers-0.4.0.tgz"},"directories":{},"publish_time":1426845362391,"_cnpm_publish_time":1426845362391,"_hasShrinkwrap":false},"0.3.0":{"name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","version":"0.3.0","homepage":"https://github.com/helpers/logging-helpers","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/helpers/logging-helpers.git"},"bugs":{"url":"https://github.com/helpers/logging-helpers/issues"},"license":{"type":"MIT","url":"https://github.com/helpers/logging-helpers/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"handlebars":"^2.0.0","mocha":"*","should":"*"},"keywords":["assemble","dash","debug","docs","documentation","engine","generate","generator","handlebars","helper","helpers","inspect","lo","lo-dash","lodash","markdown","template","templates","verb"],"dependencies":{"chalk":"^0.5.1"},"gitHead":"af6030563e959cb5adc7ea8cbde1cf068116c6f2","_id":"logging-helpers@0.3.0","_shasum":"174ef40564cbb0d94ff18e9dd921f5121d5cd6b2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"174ef40564cbb0d94ff18e9dd921f5121d5cd6b2","size":3772,"noattachment":false,"key":"/logging-helpers/-/logging-helpers-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/logging-helpers/download/logging-helpers-0.3.0.tgz"},"directories":{},"publish_time":1421787985526,"_cnpm_publish_time":1421787985526,"_hasShrinkwrap":false},"0.2.1":{"name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","version":"0.2.1","homepage":"https://github.com/helpers/logging-helpers","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/helpers/logging-helpers.git"},"bugs":{"url":"https://github.com/helpers/logging-helpers/issues"},"license":{"type":"MIT","url":"https://github.com/helpers/logging-helpers/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"handlebars":"^2.0.0","mocha":"*","should":"*"},"keywords":["assemble","dash","debug","docs","documentation","engine","generate","generator","handlebars","helper","helpers","inspect","lo","lo-dash","lodash","markdown","template","templates","verb"],"dependencies":{"chalk":"^0.5.1"},"gitHead":"00f0127c12f893c0cb31cb50169d8c7fbf4ace42","_id":"logging-helpers@0.2.1","_shasum":"a320c3396213f522c918c299b85d1aa393734962","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a320c3396213f522c918c299b85d1aa393734962","size":3796,"noattachment":false,"key":"/logging-helpers/-/logging-helpers-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/logging-helpers/download/logging-helpers-0.2.1.tgz"},"directories":{},"publish_time":1418578024405,"_cnpm_publish_time":1418578024405,"_hasShrinkwrap":false},"0.2.0":{"name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","version":"0.2.0","homepage":"https://github.com/helpers/logging-helpers","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/helpers/logging-helpers.git"},"bugs":{"url":"https://github.com/helpers/logging-helpers/issues"},"licenses":[{"type":"MIT","url":"https://github.com/helpers/logging-helpers/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"chalk":"^0.5.1"},"devDependencies":{"handlebars":"^2.0.0","mocha":"*","should":"*"},"keywords":["assemble","dash","debug","docs","documentation","engine","generate","generator","handlebars","helper","helpers","inspect","lo","lo-dash","lodash","markdown","template","templates","verb"],"_id":"logging-helpers@0.2.0","_shasum":"8e06ecf7370b811e13cbceb0551ed644485a0d0a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8e06ecf7370b811e13cbceb0551ed644485a0d0a","size":3811,"noattachment":false,"key":"/logging-helpers/-/logging-helpers-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/logging-helpers/download/logging-helpers-0.2.0.tgz"},"directories":{},"publish_time":1418280258767,"_cnpm_publish_time":1418280258767,"_hasShrinkwrap":false},"0.1.1":{"name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","version":"0.1.1","homepage":"https://github.com/helpers/logging-helpers","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/helpers/logging-helpers.git"},"bugs":{"url":"https://github.com/helpers/logging-helpers/issues"},"licenses":[{"type":"MIT","url":"https://github.com/helpers/logging-helpers/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["docs","helper","helpers","engine","lo-dash","lodash","handlebars","documentation","generate","generator","markdown","templates","verb"],"dependencies":{"chalk":"^0.5.1"},"_id":"logging-helpers@0.1.1","_shasum":"453756c345b3cdbbc0904c7673aedcb771659678","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"453756c345b3cdbbc0904c7673aedcb771659678","size":3026,"noattachment":false,"key":"/logging-helpers/-/logging-helpers-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/logging-helpers/download/logging-helpers-0.1.1.tgz"},"directories":{},"publish_time":1415765328675,"_cnpm_publish_time":1415765328675,"_hasShrinkwrap":false},"0.1.0":{"name":"logging-helpers","description":"Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/logging-helpers","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/logging-helpers.git"},"bugs":{"url":"https://github.com/jonschlinkert/logging-helpers/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/logging-helpers/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["docs","helper","helpers","engine","lo-dash","lodash","handlebars","documentation","generate","generator","markdown","templates","verb"],"dependencies":{"chalk":"^0.5.1"},"_id":"logging-helpers@0.1.0","_shasum":"2595ea36e152c29f230e492dc4785dc4918381a5","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2595ea36e152c29f230e492dc4785dc4918381a5","size":3027,"noattachment":false,"key":"/logging-helpers/-/logging-helpers-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/logging-helpers/download/logging-helpers-0.1.0.tgz"},"directories":{},"publish_time":1415745862849,"_cnpm_publish_time":1415745862849,"_hasShrinkwrap":false}},"readme":"# logging-helpers [![NPM version](https://img.shields.io/npm/v/logging-helpers.svg?style=flat)](https://www.npmjs.com/package/logging-helpers) [![NPM monthly downloads](https://img.shields.io/npm/dm/logging-helpers.svg?style=flat)](https://npmjs.org/package/logging-helpers) [![NPM total downloads](https://img.shields.io/npm/dt/logging-helpers.svg?style=flat)](https://npmjs.org/package/logging-helpers) [![Linux Build Status](https://img.shields.io/travis/helpers/logging-helpers.svg?style=flat&label=Travis)](https://travis-ci.org/helpers/logging-helpers)\n\n> Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save logging-helpers\n```\n\n## Usage\n\nThe main export is the `log` helper function with other helpers decorated as properties on this function. Some apps, like [assemble](https://github.com/assemble/assemble), [verb](https://github.com/verbose/verb) and [generate](https://github.com/generate/generate) support this format. However, a non-enumberalbe `toObject` method is exposed for registering directly with engines like [handlebars](http://www.handlebarsjs.com/)\n\nExample:\n\n```js\nvar loggingHelpers = require('logging-helpers');\nvar hbs = require('handlebars');\n\nhbs.registerHelper('log', helpers);\n// register all of the other helpers\nhbs.registerHelper(helpers.toObject);\n```\n\n## Template examples\n\nHandlebars:\n\n```handlebars\n{{log \"%s\" \"this is a message\"}}\n{{info \"%s\" \"this is a message\"}}\n{{warning \"%s\" \"this is a message\"}}\n{{warn \"%s\" \"this is a message\"}}  <!-- alias for \"warning\" -->\n{{success \"%s\" \"this is a message\"}}\n{{error \"%s\" \"this is a message\"}}\n{{danger \"%s\" \"this is a message\"}}  <!-- alias for \"error\" -->\n{{ok \"%s\" \"this is a message\"}}\n{{bold \"%s\" \"this is a message\"}}\n{{_debug this}}\n{{_inspect foo.bar}}\n```\n\nLo-Dash or Underscore:\n\n```html\n<%= log(\"%s\", \"this is a message\") %>\n<%= info(\"%s\", \"this is a message\") %>\n<%= warn(\"%s\", \"this is a message\") %>\n<%= warning(\"%s\", \"this is a message\") %>\n<%= error(\"%s\", \"this is a message\") %>\n<%= bold(\"%s\", \"this is a message\") %>\n<%= _debug(data) %>\n<%= _inspect(foo.bar) %>\n```\n\n[Verb](https://github.com/verbose/verb) (uses lodash-style templates, but with special delimiters to avoid delimiter collision in documentation):\n\n```js\n{%= log(\"%s\", \"this is a message\") %}\n{%= info(\"%s\", \"this is a message\") %}\n{%= bold(\"%s\", \"this is a message\") %}\n{%= warn(\"%s\", \"this is a message\") %}\n{%= error(\"%s\", \"this is a message\") %}\n{%= debug(data) %}\n{%= inspect(foo.bar) %}\n```\n\n## Usage with [assemble](https://github.com/assemble/assemble)\n\nThis should work with [assemble](https://github.com/assemble/assemble), [verb](https://github.com/verbose/verb), [generate](https://github.com/generate/generate), [update](https://github.com/update/update) or any application based on [templates](https://github.com/jonschlinkert/templates).\n\n```js\nvar helpers = require('logging-helpers');\nvar assemble = require('assemble');\nvar app = assemble();\napp.helpers(helpers);\n```\n\nYou can now use the helpers like this:\n\n```handlebars\n{{log \"%s\" \"this is a message\"}}\n{{info \"%s\" \"this is a message\"}}\n{{warning \"%s\" \"this is a message\"}}\n{{warn \"%s\" \"this is a message\"}}  <!-- alias for \"warning\" -->\n{{success \"%s\" \"this is a message\"}}\n{{error \"%s\" \"this is a message\"}}\n{{danger \"%s\" \"this is a message\"}}  <!-- alias for \"error\" -->\n{{ok \"%s\" \"this is a message\"}}\n{{bold \"%s\" \"this is a message\"}}\n{{_debug this}}\n{{_inspect foo.bar}}\n```\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\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### Running tests\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### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [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.6.0, on June 21, 2017._","_attachments":{},"homepage":"https://github.com/helpers/logging-helpers","bugs":{"url":"https://github.com/helpers/logging-helpers/issues"},"license":"MIT"}