{"_id":"loglevel-plugin-prefix","_rev":"198890","name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","dist-tags":{"latest":"0.8.4"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"time":{"modified":"2021-06-03T12:30:32.000Z","created":"2017-06-06T10:39:49.098Z","0.8.4":"2018-06-18T06:49:21.604Z","0.8.3":"2018-01-26T12:31:59.805Z","0.8.2":"2018-01-26T12:26:08.835Z","0.8.1":"2018-01-26T11:52:12.235Z","0.8.0":"2018-01-26T09:33:26.014Z","0.7.2":"2018-01-11T11:48:53.798Z","0.7.1":"2018-01-11T09:19:03.080Z","0.7.0":"2018-01-09T07:08:57.061Z","0.6.0":"2018-01-03T12:29:07.110Z","0.5.3":"2017-06-19T10:35:11.945Z","0.5.2":"2017-06-19T10:17:31.555Z","0.5.1":"2017-06-19T10:11:22.889Z","0.5.0":"2017-06-13T10:02:26.604Z","0.4.2":"2017-06-06T12:54:17.468Z","0.4.1":"2017-06-06T10:39:49.098Z"},"users":{},"author":{"name":"kutuluk"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"versions":{"0.8.4":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","node","prefix","colored","loglevel","plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.8.4","main":"./lib/loglevel-plugin-prefix","types":"index.d.ts","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","example":"node ./example/example.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.1","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.12.0","loglevel":"^1.6.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.4.0"},"gitHead":"642ab4c4e4a92a6e8010e527f1096dbb829f192c","_id":"loglevel-plugin-prefix@0.8.4","_npmVersion":"6.1.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"2fe0e05f1a820317d98d8c123e634c1bd84ff644","size":46862,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.8.4.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix_0.8.4_1529304561518_0.48538714167735897"},"_hasShrinkwrap":false,"publish_time":1529304561604,"_cnpm_publish_time":1529304561604},"0.8.3":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","node","prefix","colored","loglevel","plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.8.3","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","example":"node ./example/example.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","chalk":"^2.3.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.8.0","loglevel":"^1.6.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.5"},"gitHead":"1e4839a1a385256c4fb9d911470bf3e3ccf081c5","_id":"loglevel-plugin-prefix@0.8.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"3e46ee114f92ead1e1761100209349bda695995b","size":46704,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.8.3.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.8.3.tgz_1516969918576_0.007563644088804722"},"directories":{},"publish_time":1516969919805,"_hasShrinkwrap":false,"_cnpm_publish_time":1516969919805},"0.8.2":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","node","prefix","colored","loglevel","plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.8.2","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","example":"node ./example/example.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","chalk":"^2.3.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.8.0","loglevel":"^1.6.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.5"},"gitHead":"e8e1e587069192f556150d3d35707d28e07537cf","_id":"loglevel-plugin-prefix@0.8.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"ce0222dc48142b7bf713b4b48babefa4b60a4d4f","size":46705,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.8.2.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.8.2.tgz_1516969567949_0.9765973419416696"},"directories":{},"publish_time":1516969568835,"_hasShrinkwrap":false,"_cnpm_publish_time":1516969568835},"0.8.1":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","node","prefix","colored","loglevel","plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.8.1","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","example":"node ./example/example.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","chalk":"^2.3.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.8.0","loglevel":"^1.6.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.5"},"gitHead":"cd28c98490781614c70901bc8908a33c6302ffdf","_id":"loglevel-plugin-prefix@0.8.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"f2716d394163887354b4d0707de50b3fb3a6bc77","size":47623,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.8.1.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.8.1.tgz_1516967532142_0.413880065549165"},"directories":{},"publish_time":1516967532235,"_hasShrinkwrap":false,"_cnpm_publish_time":1516967532235},"0.8.0":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","node","prefix","colored","loglevel","plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.8.0","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","example":"node ./example/example.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","chalk":"^2.3.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.8.0","loglevel":"^1.6.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.5"},"gitHead":"161686c95f5536705f9a6e748b1ec04621d764da","_id":"loglevel-plugin-prefix@0.8.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"f90ee8e8583a19016f54f25144ade66b612bc43b","size":62613,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.8.0.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.8.0.tgz_1516959204848_0.2715069307014346"},"directories":{},"publish_time":1516959206014,"_hasShrinkwrap":false,"_cnpm_publish_time":1516959206014},"0.7.2":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","prefix","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.7.2","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","example":"node ./example/example.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.8.0","loglevel":"^1.6.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.5"},"gitHead":"586478e33b8c3075f3c3d183d3bcad7c21b46c83","_id":"loglevel-plugin-prefix@0.7.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"938a5598b149d97b6de44e13547a764135b917b4","size":5520,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.7.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.7.2.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.7.2.tgz_1515671332876_0.8049874138087034"},"directories":{},"publish_time":1515671333798,"_hasShrinkwrap":false,"_cnpm_publish_time":1515671333798},"0.7.1":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","prefix","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.7.1","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","example":"node ./example/example.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.8.0","loglevel":"^1.6.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.5"},"gitHead":"b9fb87224331d1975f16e8285f36bb56c9c7aee9","_id":"loglevel-plugin-prefix@0.7.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"be59354b2b20d7e2edf9accd2b793c58f7b0ca93","size":5473,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.7.1.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.7.1.tgz_1515662342101_0.15708632348105311"},"directories":{},"publish_time":1515662343080,"_hasShrinkwrap":false,"_cnpm_publish_time":1515662343080},"0.7.0":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","prefix","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.7.0","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.8.0","loglevel":"^1.6.0","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.4"},"gitHead":"c7c974998eb2929c0e410e7bbbaeec3c30d3e1a6","_id":"loglevel-plugin-prefix@0.7.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"e56424eb4cd89cc4ed650f0a37f728627807441c","size":5304,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.7.0.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.7.0.tgz_1515481736089_0.1560788913629949"},"directories":{},"publish_time":1515481737061,"_cnpm_publish_time":1515481737061,"_hasShrinkwrap":false},"0.6.0":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","prefix","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.6.0","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.1.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-chai-friendly":"^0.3.6","loglevel":"^1.6.0","loglevel-plugin-mock":"^0.1.0","mocha":"^3.5.3","sinon":"^2.4.1","uglify-js":"^3.3.4"},"gitHead":"dfaca7b4cc9e8933de8a78b202388ad176d59426","_id":"loglevel-plugin-prefix@0.6.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"52027c2f7d7d36f055179676c8027077c33bf6f8","size":4747,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.6.0.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.6.0.tgz_1514982546192_0.9249604500364512"},"directories":{},"publish_time":1514982547110,"_hasShrinkwrap":false,"_cnpm_publish_time":1514982547110},"0.5.3":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","prefix","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.5.3","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.0.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-chai-friendly":"^0.3.6","loglevel":"^1.4.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.4.2","sinon":"^2.3.2","uglify-js":"^3.0.11"},"gitHead":"a1c211cea025b37bda85a72a6ef4bb23bd320861","_id":"loglevel-plugin-prefix@0.5.3","_npmVersion":"5.0.3","_nodeVersion":"6.10.0","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"8e9131b96e4697a0dba517996f76b9e6c3f43210","size":5164,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.5.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.5.3.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.5.3.tgz_1497868510887_0.689860220067203"},"directories":{},"publish_time":1497868511945,"_cnpm_publish_time":1497868511945,"_hasShrinkwrap":false},"0.5.2":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","prefix","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.5.2","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.0.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-chai-friendly":"^0.3.6","loglevel":"^1.4.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.4.2","sinon":"^2.3.2","uglify-js":"^3.0.11"},"gitHead":"57d3ac1aef4e69bbb220caea5bdcbffd78287b6a","_id":"loglevel-plugin-prefix@0.5.2","_npmVersion":"5.0.3","_nodeVersion":"6.10.0","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"eda9813be0b052cc104ed3633385adfd194954b2","size":5226,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.5.2.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.5.2.tgz_1497867450484_0.3419708760920912"},"directories":{},"publish_time":1497867451555,"_hasShrinkwrap":false,"_cnpm_publish_time":1497867451555},"0.5.1":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","prefix","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.5.1","main":"./lib/loglevel-plugin-prefix","scripts":{"eslint":"eslint ./lib/loglevel-plugin-prefix.js","test":"mocha","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m","build":"npm install && npm run eslint && npm run test && npm run uglifyjs"},"devDependencies":{"chai":"^4.0.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-chai-friendly":"^0.3.6","loglevel":"^1.4.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.4.2","sinon":"^2.3.2","uglify-js":"^3.0.11"},"gitHead":"4c8253a178541020999ba634f76f8a212b301759","_id":"loglevel-plugin-prefix@0.5.1","_npmVersion":"5.0.3","_nodeVersion":"6.10.0","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"9dc73b151ba21adc75b9739bd0d1aae27a2db0c7","size":5238,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.5.1.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.5.1.tgz_1497867081815_0.4230596893467009"},"directories":{},"publish_time":1497867082889,"_cnpm_publish_time":1497867082889,"_hasShrinkwrap":false},"0.5.0":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.5.0","main":"./lib/loglevel-plugin-prefix","babel":{"presets":["env"],"plugins":["add-module-exports","transform-es2015-modules-umd"]},"scripts":{"eslint":"eslint src/prefix.js","test":"mocha","babel":"babel ./src/prefix.js --out-file ./lib/loglevel-plugin-prefix.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m reserved=[prefix]","build":"npm run babel && npm run uglifyjs","publish-to-npm":"npm install && npm run build && npm publish"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.5.1","chai":"^4.0.2","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-chai-friendly":"^0.3.6","eslint-plugin-import":"^2.3.0","loglevel":"^1.4.1","loglevel-plugin-mock":"^0.1.0","mocha":"^3.4.2","sinon":"^2.3.2","uglify-js":"^3.0.11"},"gitHead":"f4613416df79d098305c4f9461d99c602d7d47d6","_id":"loglevel-plugin-prefix@0.5.0","_npmVersion":"5.0.3","_nodeVersion":"6.10.0","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"1c38d5595bfb7f2c8e1acf06de630524afb78343","size":5840,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.5.0.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.5.0.tgz_1497348145555_0.33837190410122275"},"directories":{},"publish_time":1497348146604,"_cnpm_publish_time":1497348146604,"_hasShrinkwrap":false},"0.4.2":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.4.2","main":"./lib/loglevel-plugin-prefix","babel":{"presets":["env"],"plugins":["add-module-exports","transform-es2015-modules-umd"]},"scripts":{"eslint":"eslint src/prefix.js","babel":"babel ./src/prefix.js --out-file ./lib/loglevel-plugin-prefix.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m reserved=[prefix]","build":"npm run babel && npm run uglifyjs","publish-to-npm":"npm install && npm run build && npm publish"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.5.1","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.3.0","uglify-js":"^3.0.11"},"gitHead":"f4613416df79d098305c4f9461d99c602d7d47d6","_id":"loglevel-plugin-prefix@0.4.2","_npmVersion":"5.0.2","_nodeVersion":"6.10.0","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"8c3b430cbd12bd03565e80d8201133697bd64ce0","size":4662,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.4.2.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.4.2.tgz_1496753656593_0.24194470862857997"},"directories":{},"publish_time":1496753657468,"_hasShrinkwrap":false,"_cnpm_publish_time":1496753657468},"0.4.1":{"name":"loglevel-plugin-prefix","description":"Plugin for loglevel message prefixing","author":{"name":"kutuluk"},"keywords":["log","logger","logging","browser","loglevel","loglevel-plugin"],"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/kutuluk/loglevel-plugin-prefix.git"},"license":"MIT","version":"0.4.1","main":"./lib/loglevel-plugin-prefix","babel":{"presets":["env"],"plugins":["add-module-exports","transform-es2015-modules-umd"]},"scripts":{"eslint":"eslint src/prefix.js","babel":"babel ./src/prefix.js --out-file ./lib/loglevel-plugin-prefix.js","uglifyjs":"uglifyjs ./lib/loglevel-plugin-prefix.js -o ./dist/loglevel-plugin-prefix.min.js -c -m reserved=[prefix]","build":"npm run babel && npm run uglifyjs","publish-to-npm":"npm install && npm run build && npm publish"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.5.1","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.3.0","uglify-js":"^3.0.11"},"gitHead":"1db0e0a667f963d9705609857affeb5c81a2c11e","_id":"loglevel-plugin-prefix@0.4.1","_npmVersion":"5.0.2","_nodeVersion":"6.10.0","_npmUser":{"name":"kutuluk","email":"blooderast@gmail.com"},"dist":{"shasum":"b8e90f9d2c8d1a986f42ef0b9b20ffb1a61e9c06","size":4700,"noattachment":false,"key":"/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/loglevel-plugin-prefix/download/loglevel-plugin-prefix-0.4.1.tgz"},"maintainers":[{"name":"kutuluk","email":"blooderast@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loglevel-plugin-prefix-0.4.1.tgz_1496745588177_0.9440593791659921"},"directories":{},"publish_time":1496745589098,"_cnpm_publish_time":1496745589098,"_hasShrinkwrap":false}},"readme":"# loglevel-plugin-prefix\r\n\r\nPlugin for [loglevel](https://github.com/pimterry/loglevel) message prefixing.\r\n\r\n[![NPM version](https://img.shields.io/npm/v/loglevel-plugin-prefix.svg?style=flat-square)](https://www.npmjs.com/package/loglevel-plugin-prefix)[![Build Status](https://img.shields.io/travis/kutuluk/loglevel-plugin-prefix/master.svg?style=flat-square)](https://travis-ci.org/kutuluk/loglevel-plugin-prefix)\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install loglevel-plugin-prefix\r\n```\r\n\r\n## API\r\n\r\n**This plugin is under active development and should be considered as an unstable. No guarantees regarding API stability are made. Backward compatibility is guaranteed only by path releases.**\r\n\r\n#### `reg(loglevel)`\r\n\r\nThis method registers plugin for loglevel. This method must be called at least once before any call to the apply method. Repeated calls to this method are ignored.\r\n\r\n#### Parameters\r\n\r\n`loglevel` - the root logger, imported from loglevel module\r\n\r\n#### `apply(logger, options)`\r\n\r\nThis method applies the plugin to the logger. Before using this method, the `reg` method must be called, otherwise a warning will be logged. **From the next release, the call apply before reg will throw an error.**\r\n\r\n#### Parameters\r\n\r\n`logger` - any logger of loglevel\r\n\r\n`options` - an optional configuration object\r\n\r\n```javascript\r\nvar defaults = {\r\n  template: '[%t] %l:',\r\n  levelFormatter: function (level) {\r\n    return level.toUpperCase();\r\n  },\r\n  nameFormatter: function (name) {\r\n    return name || 'root';\r\n  },\r\n  timestampFormatter: function (date) {\r\n    return date.toTimeString().replace(/.*(\\d{2}:\\d{2}:\\d{2}).*/, '$1');\r\n  },\r\n  format: undefined\r\n};\r\n```\r\n\r\nPlugin formats the prefix using `template` option as a printf-like format. The `template` is a string containing zero or more placeholder tokens. Each placeholder token is replaced with the value from loglevel messages parameters. Supported placeholders are:\r\n\r\n- `%l` - level of message\r\n- `%n` - name of logger\r\n- `%t` - timestamp of message\r\n\r\nThe `levelFormatter`, `nameFormatter` and `timestampFormatter` is a functions for formatting corresponding values.\r\n\r\nAlternatively, you can use `format` option. This is a function that receives formatted values (level, name, timestamp) and should returns a prefix string.\r\n\r\nIf both `format` and` template` are present in the configuration, the `template` parameter is ignored. When both these parameters are missing in the configuration, the inherited behavior is used.\r\n\r\n## Usage\r\n\r\n### Browser directly\r\n```html\r\n<script src=\"https://unpkg.com/loglevel/dist/loglevel.min.js\"></script>\r\n<script src=\"https://unpkg.com/loglevel-plugin-prefix@^0.8/dist/loglevel-plugin-prefix.min.js\"></script>\r\n\r\n<script>\r\n  var logger = log.noConflict();\r\n  var prefixer = prefix.noConflict();\r\n  prefixer.reg(logger);\r\n  prefixer.apply(logger);\r\n  logger.warn('prefixed message');\r\n</script>\r\n```\r\n\r\nOutput\r\n```\r\n[16:53:46] WARN: prefixed message\r\n```\r\n\r\n### Node\r\n```javascript\r\nconst chalk = require('chalk');\r\nconst log = require('loglevel');\r\nconst prefix = require('loglevel-plugin-prefix');\r\n\r\nconst colors = {\r\n  TRACE: chalk.magenta,\r\n  DEBUG: chalk.cyan,\r\n  INFO: chalk.blue,\r\n  WARN: chalk.yellow,\r\n  ERROR: chalk.red,\r\n};\r\n\r\nprefix.reg(log);\r\nlog.enableAll();\r\n\r\nprefix.apply(log, {\r\n  format(level, name, timestamp) {\r\n    return `${chalk.gray(`[${timestamp}]`)} ${colors[level.toUpperCase()](level)} ${chalk.green(`${name}:`)}`;\r\n  },\r\n});\r\n\r\nprefix.apply(log.getLogger('critical'), {\r\n  format(level, name, timestamp) {\r\n    return chalk.red.bold(`[${timestamp}] ${level} ${name}:`);\r\n  },\r\n});\r\n\r\nlog.trace('trace');\r\nlog.debug('debug');\r\nlog.getLogger('critical').info('Something significant happened');\r\nlog.log('log');\r\nlog.info('info');\r\nlog.warn('warn');\r\nlog.error('error');\r\n```\r\n\r\nOutput\r\n\r\n![output](https://raw.githubusercontent.com/kutuluk/loglevel-plugin-prefix/master/colored.png \"output\")\r\n\r\n## Custom options\r\n\r\n```javascript\r\nconst log = require('loglevel');\r\nconst prefix = require('loglevel-plugin-prefix');\r\n\r\nprefix.reg(log);\r\nlog.enableAll();\r\n\r\nprefix.apply(log, {\r\n  template: '[%t] %l (%n) static text:',\r\n  levelFormatter(level) {\r\n    return level.toUpperCase();\r\n  },\r\n  nameFormatter(name) {\r\n    return name || 'global';\r\n  },\r\n  timestampFormatter(date) {\r\n    return date.toISOString();\r\n  },\r\n});\r\n\r\nlog.info('%s prefix', 'template');\r\n\r\nconst fn = (level, name, timestamp) => `[${timestamp}] ${level} (${name}) static text:`;\r\n\r\nprefix.apply(log, { format: fn });\r\n\r\nlog.info('%s prefix', 'functional');\r\n\r\nprefix.apply(log, { template: '[%t] %l (%n) static text:' });\r\n\r\nlog.info('again %s prefix', 'template');\r\n```\r\n\r\nOutput\r\n```\r\n[2017-05-29T12:53:46.000Z] INFO (global) static text: template prefix\r\n[2017-05-29T12:53:46.000Z] INFO (global) static text: functional prefix\r\n[2017-05-29T12:53:46.000Z] INFO (global) static text: again template prefix\r\n```\r\n\r\n## Option inheritance\r\n\r\n```javascript\r\nconst log = require('loglevel');\r\nconst prefix = require('loglevel-plugin-prefix');\r\n\r\nprefix.reg(log);\r\nlog.enableAll();\r\n\r\nlog.info('root');\r\n\r\nconst chicken = log.getLogger('chicken');\r\nchicken.info('chicken');\r\n\r\nprefix.apply(chicken, { template: '%l (%n):' });\r\nchicken.info('chicken');\r\n\r\nprefix.apply(log);\r\nlog.info('root');\r\n\r\nconst egg = log.getLogger('egg');\r\negg.info('egg');\r\n\r\nconst fn = (level, name) => `${level} (${name}):`;\r\n\r\nprefix.apply(egg, { format: fn });\r\negg.info('egg');\r\n\r\nprefix.apply(egg, {\r\n  levelFormatter(level) {\r\n    return level.toLowerCase();\r\n  },\r\n});\r\negg.info('egg');\r\n\r\nchicken.info('chicken');\r\nlog.info('root');\r\n```\r\n\r\nOutput\r\n```\r\nroot\r\nchicken\r\nINFO (chicken): chicken\r\n[16:53:46] INFO: root\r\n[16:53:46] INFO: egg\r\nINFO (egg): egg\r\ninfo (egg): egg\r\nINFO (chicken): chicken\r\n[16:53:46] INFO: root\r\n```\r\n","_attachments":{},"homepage":"https://github.com/kutuluk/loglevel-plugin-prefix","bugs":{"url":"https://github.com/kutuluk/loglevel-plugin-prefix/issues"},"license":"MIT"}