{"_id":"@bongione/bunyan4lib","_rev":"6-c200ce4c3f6789d18c7e7a4c6a5026be","name":"@bongione/bunyan4lib","description":"Bunyan logger for libraries, allowing clients to customize or turn off","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@bongione/bunyan4lib","version":"0.0.1","description":"Bunyan logger for libraries, allowing clients to customize or turn off","main":"lib/index.js","files":["lib","src"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","build-watch":"babel src --watch --out-dir lib","lint":"eslint src","test":"npm run clean && npm run build && mocha --compilers js:babel-register --recursive","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["bunyan","logging","lirabries"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/bunyan4lib/issues"},"homepage":"https://github.com/mindiply/bunyan4lib#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-preset-es2015":"^6.18.0","babel-register":"^6.18.0","chai":"^3.5.0","cross-env":"^3.1.3","eslint":"^3.10.2","eslint-config-standard":"^6.2.1","eslint-plugin-promise":"^3.4.0-0","eslint-plugin-standard":"^2.0.1","mocha":"^3.1.2","rimraf":"^2.5.4"},"peerDependencies":{},"dependencies":{"bunyan":"^1.8.5"},"gitHead":"c848d06421248cd4958003f108ede6234769fe81","_id":"@bongione/bunyan4lib@0.0.1","_shasum":"e88a1eefe012f1898484af8eaaff309dc46ac824","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"e88a1eefe012f1898484af8eaaff309dc46ac824","tarball":"https://registry.npmjs.org/@bongione/bunyan4lib/-/bunyan4lib-0.0.1.tgz","integrity":"sha512-BYU5+GeTFgBox2ZdRPQhIsmQfHmASmEYJfKTRWmeEtkqAro5mF471d+ZNSwidPm2S+wE8yi4mg/tvL1Z58TZbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOA74FgSJbYK0y7AbNTUmGWxpF4sx3g0MUAapcpsMTFgIhAJefacmDysR+BpM3+fD++rt+hxsUaFoB+nKzG51llXFW"}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bunyan4lib-0.0.1.tgz_1479397795363_0.45140254381112754"},"directories":{}},"0.0.2":{"name":"@bongione/bunyan4lib","version":"0.0.2","description":"Bunyan logger for libraries, allowing clients to customize or turn off","main":"lib/index.js","files":["lib","src"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","build-watch":"babel src --watch --out-dir lib","lint":"eslint src","test":"npm run clean && npm run build && mocha --compilers js:babel-register --recursive","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/mindiply/bunyan4lib.git"},"keywords":["bunyan","logging","lirabries"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/bunyan4lib/issues"},"homepage":"https://github.com/mindiply/bunyan4lib#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-preset-es2015":"^6.18.0","babel-register":"^6.18.0","chai":"^3.5.0","cross-env":"^3.1.3","eslint":"^3.10.2","eslint-config-standard":"^6.2.1","eslint-plugin-promise":"^3.4.0-0","eslint-plugin-standard":"^2.0.1","mocha":"^3.1.2","rimraf":"^2.5.4"},"peerDependencies":{},"dependencies":{"bunyan":"^1.8.5"},"gitHead":"90d5138008d46f00d0064bb2e8b09dc46e4f7d0b","_id":"@bongione/bunyan4lib@0.0.2","_shasum":"1361d0a58107ff9dfb24a1afc61f0f875a0db8f0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"1361d0a58107ff9dfb24a1afc61f0f875a0db8f0","tarball":"https://registry.npmjs.org/@bongione/bunyan4lib/-/bunyan4lib-0.0.2.tgz","integrity":"sha512-ezK/+J4flDBY7r/Y8YHnJV/9PTC5tj+mQIhGDbu7tOwzLEzfazrK09QhVSpUmYwrN6UeZFI+O7tY3r2tnO2PgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMS27rCtjLSfku6UrofcbPlYj3SGNS9Snk4vjMonaPLwIhAJiMrGn1c8DBQT7Duykj30Wqks2HDLkxGpfgu+sMPpLc"}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bunyan4lib-0.0.2.tgz_1479398023821_0.16598914004862309"},"directories":{}},"0.0.3":{"name":"@bongione/bunyan4lib","version":"0.0.3","description":"Bunyan logger for libraries, allowing clients to customize or turn off","main":"lib/index.js","types":"types/index.d.js","scripts":{"clean":"rimraf lib && rimraf types","build":"npm run clean && npm run build:types && npm run build:babel","build:babel":"babel src --out-dir lib --extensions \".ts\"","build:types":"tsc","build-watch":"babel src --watch --out-dir lib","lint":"eslint src --ext .js,.jsx,.ts,.tsx","test":"mocha","prepublishOnly":"npm run lint && npm run build && npm run test"},"repository":{"type":"git","url":"git+https://github.com/mindiply/bunyan4lib.git"},"keywords":["bunyan","logging","lirabries"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/bunyan4lib/issues"},"homepage":"https://github.com/mindiply/bunyan4lib#readme","devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/preset-env":"^7.9.0","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","@types/bunyan":"^1.8.6","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","chai":"^4.2.0","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-config-standard":"^14.1.1","eslint-plugin-prettier":"^3.1.2","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","mocha":"^7.1.1","prettier":"^2.0.2","rimraf":"^3.0.2","typescript":"^3.8.3"},"peerDependencies":{},"dependencies":{"bunyan":"^1.8.12"},"gitHead":"90d5138008d46f00d0064bb2e8b09dc46e4f7d0b","_id":"@bongione/bunyan4lib@0.0.3","_nodeVersion":"13.6.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eCCaZsIekFN5aRCFL2lLtlybJcLyV643c63lA0zco2R4VVpRXqPgXKhSVMxbZLY2GkCg5pNLOMVR1vqFzxd+PA==","shasum":"c66005d3629daffee4b38f59d4442f002f917a72","tarball":"https://registry.npmjs.org/@bongione/bunyan4lib/-/bunyan4lib-0.0.3.tgz","fileCount":6,"unpackedSize":17215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegfgyCRA9TVsSAnZWagAA4nEP/0K7ep/YRwMFsMOB5iID\nq32xSGoIHz7M7Rs7RqXPP4kaCDEUJKK2+PXn/crEuT704yq39syvgbY7fL78\n8Qzb8XZR0ffiJSvObEI5ouCRMw1ifMxsLdRSXx7nWq7gkSjkJFZHhLO5mGj9\nJSXPbLacV0mW36h7thosEC14rKSlqLpNtObYZ7f+YsHeBqhnVm6oVUZBFsFU\nLAMGUYRLOqVwnS5WvANxWowSVwrwncedAwpfS7tMK/+ZRRIdIPHwlIeCiFno\n8gwps7mhIi+S5JI53Y08xvhavIlc2/YAEQnSX3AaJnHgiCOYvnLaSRqTE+c6\nEkc75YHIF57M5T3uBTAiQE3MUN9ay9CFC+S0BryMXGblmfWIwfvbP+Pm+tzR\nNC/awNhANpFzMGHkClSJc+jdjC4vpzHRgJb1PpfVe6FhEC5UtQOIoeFTvnYK\nyY30v5aZVib+omsZYWrd63Nge7WQbm+KctVUcGDowp7Yc1Sg9SW06un9gLdv\numjDcsuNoGielCi0Mw/81quoWIGejJRGxxLVRbogz49bwsNpmMGGgMyui2v8\noV95rSFN8mDaRBg29bJQW2Zs/EU6uiUYT2CdHFarMAqIWjJfc82y15yuT9KH\nd+QWKCodCkw5SA5VUiSjewijbtv4DV5SVoxClH6gp3bo6o7jMY7jpeag0gyU\nGcP3\r\n=J08d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbsgBpFzGUdbiWFy1X7K2jO/R8BEczppCVInZKDtHaDQIhAPHMfgVVDtKVfBlD3u2H4JBozBYCDD+LTBavGXt4+i3r"}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bunyan4lib_0.0.3_1585575984796_0.12483194304210365"},"_hasShrinkwrap":false}},"readme":"# bunyan4lib\nUse bunyan in libraries, allowing clients to turn off logging, use a default logger\nor provide their own bunyan logger.\n\nThe default logger uses the bunyan defaults and uses a logger with name LIB.\n\n# Install\n\n~~~\nnpm install @bongione/bunyan4lib\n~~~\n\n# Usage\n\nIn your main library file:\n\n~~~\n\nmodule.exports = (options) => {\n\n    let log = require('@bongione/bunyan4lib')(options.log)\n    \n    // If your module expects configuration parameters\n    let other_module = require('...')({log : log, ...otherOptions})\n     \n    // If your module calls the @bongione/bunyan4lib library itself.\n    // The bunyan4lib require then should be before the first module import\n    let your_module = require('...')\n    \n}\n~~~\n\n\nIn your module:\n \n~~~\n\nlet log = require('@bongione/bunyan4lib')()\n\n...\n\nif (false) log.error(err, 'Unexpected error, argh!')\n~~~\n\n**options.log** can have the following values:\n\n* **falsy** turn all logging off. This is the default\n* Object with the fields:\n    * **name** String representing the name of the logger. If one is not provided 'LIB' will be used\n    * **log** a bunyan logger, which will then be used instead of creating a standard one.\n\n# License\n\nApache 2.0\n","maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"time":{"modified":"2022-06-12T15:25:34.360Z","created":"2016-11-17T15:49:57.489Z","0.0.1":"2016-11-17T15:49:57.489Z","0.0.2":"2016-11-17T15:53:44.401Z","0.0.3":"2020-03-30T13:46:25.540Z"},"homepage":"https://github.com/mindiply/bunyan4lib#readme","keywords":["bunyan","logging","lirabries"],"repository":{"type":"git","url":"git+https://github.com/mindiply/bunyan4lib.git"},"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"bugs":{"url":"https://github.com/mindiply/bunyan4lib/issues"},"license":"\tApache-2.0","readmeFilename":"README.md"}