{"_id":"@aditya_arga/chalkconsole","_rev":"2-b4582507b4293bcbc3eded773b887c77","name":"@aditya_arga/chalkconsole","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.7":{"name":"@aditya_arga/chalkconsole","version":"1.0.7","description":"Make console log more colorful","main":"colorconsole.js","scripts":{"test":"node ./test/test.js"},"repository":{"type":"git","url":"git+https://github.com/thesuhu/colorconsole.git"},"keywords":["console","log"],"author":{"name":"aditya-arga"},"license":"MIT","bugs":{"url":"https://github.com/thesuhu/colorconsole/issues"},"homepage":"https://github.com/thesuhu/colorconsole#readme","dependencies":{"chalk":"^4.1.2"},"gitHead":"3376aaed9d3d9fdde489320e4f42740fd70a5e98","_id":"@aditya_arga/chalkconsole@1.0.7","_nodeVersion":"16.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-X3VBuMo8K6QBXZpzePyhjPlgW85zWggLCFL4BZjLCZ2e015Jprk5zMInASgHSR+KUE08rFohq0E3TZDAbkcAxw==","shasum":"eccb8b0a78c9c9bec547cb5b7162e229987970aa","tarball":"https://registry.npmjs.org/@aditya_arga/chalkconsole/-/chalkconsole-1.0.7.tgz","fileCount":5,"unpackedSize":5648,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmasIQiD+qyr3O/fa5YZG8ev/MPp/JDDSquJ8yTg6W7AiBS574xJK1DumlExjg/3rfLOhMNkmDRElR/vVY5qEglgA=="}]},"_npmUser":{"name":"aditya_arga","email":"ytfuga02@gmail.com"},"directories":{},"maintainers":[{"name":"aditya_arga","email":"ytfuga02@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalkconsole_1.0.7_1709094552976_0.8703604318070837"},"_hasShrinkwrap":false},"1.0.8":{"name":"@aditya_arga/chalkconsole","version":"1.0.8","description":"Make console log more colorful","main":"colorconsole.js","scripts":{"test":"node ./test/test.js"},"repository":{"type":"git","url":"git+https://github.com/Aex5/nano-tea.git"},"keywords":["console","log"],"author":{"name":"aditya-arga"},"license":"MIT","bugs":{"url":"https://github.com/Aex5/nano-tea.git/issues"},"homepage":"https://github.com/Aex5/nano-tea.git#readme","dependencies":{"chalk":"^4.1.2"},"gitHead":"ad616e7d22cfaa6461a040c2281a0f266708b4bd","_id":"@aditya_arga/chalkconsole@1.0.8","_nodeVersion":"16.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-pFVTsaqoX8gxKgVFkHk4S3l1kR38DQbWRiqFmzbaFZCdfRNROz/K5FRxY6gmoZRGUqKI/cnRQPVi8u6CTZOndA==","shasum":"ecf093d5d8d79a3e72cfc2aea85e3564da6bf5d6","tarball":"https://registry.npmjs.org/@aditya_arga/chalkconsole/-/chalkconsole-1.0.8.tgz","fileCount":5,"unpackedSize":5635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDa/peemxGilsRiAFhI6Uz52U4xKWaU0PlylABt331quQIhALtP8JIj8d84+J3x0S3m+B9FjtE3Y0kWamQDWKVWwNvH"}]},"_npmUser":{"name":"aditya_arga","email":"ytfuga02@gmail.com"},"directories":{},"maintainers":[{"name":"aditya_arga","email":"ytfuga02@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalkconsole_1.0.8_1709094819911_0.9858760098784833"},"_hasShrinkwrap":false},"1.0.9":{"name":"@aditya_arga/chalkconsole","version":"1.0.9","description":"Make console log more colorful","main":"colorconsole.js","scripts":{"test":"node ./test/test.js"},"repository":{"type":"git","url":"git+https://github.com/Aex5/nano-tea.git"},"keywords":["console","log"],"author":{"name":"aditya-arga"},"license":"MIT","bugs":{"url":"https://github.com/Aex5/nano-tea.git/issues"},"homepage":"https://github.com/Aex5/nano-tea.git#readme","dependencies":{"chalk":"^4.1.2"},"gitHead":"0a529a619f478272c289dbfacab06af535e8b5ad","_id":"@aditya_arga/chalkconsole@1.0.9","_nodeVersion":"16.19.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-oJqmWUGcN64wRc5yM9RfFhLR7Ci5Vk7fru5Rq9xfO5qoMuBBVBkPlZw/jLfDvOJsjb/x1ojtOF9iHM98imA40g==","shasum":"873a8029a5b788d4b2d39116416b7e0fb398e190","tarball":"https://registry.npmjs.org/@aditya_arga/chalkconsole/-/chalkconsole-1.0.9.tgz","fileCount":5,"unpackedSize":5635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsDy4QWvjuVdN9Ud0kYKhiJVGtrY+KWBcI8nYKIeUM5QIgeusBNjJgShK9uTjRBRujkBT0VuVeqLEQw1BTccb+JZg="}]},"_npmUser":{"name":"aditya_arga","email":"ytfuga02@gmail.com"},"directories":{},"maintainers":[{"name":"aditya_arga","email":"ytfuga02@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalkconsole_1.0.9_1709177073771_0.6217529251590141"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-28T04:29:12.888Z","1.0.7":"2024-02-28T04:29:13.151Z","modified":"2024-02-29T03:24:34.349Z","1.0.8":"2024-02-28T04:33:40.054Z","1.0.9":"2024-02-29T03:24:33.911Z"},"maintainers":[{"name":"aditya_arga","email":"ytfuga02@gmail.com"}],"description":"Make console log more colorful","homepage":"https://github.com/Aex5/nano-tea.git#readme","keywords":["console","log"],"repository":{"type":"git","url":"git+https://github.com/Aex5/nano-tea.git"},"author":{"name":"aditya-arga"},"bugs":{"url":"https://github.com/Aex5/nano-tea.git/issues"},"license":"MIT","readme":"# chalkconsole\n\n[![npm](https://img.shields.io/npm/v/chalkconsole.svg?style=flat-square)](https://www.npmjs.com/package/chalkconsole)\n[![license](https://img.shields.io/github/license/thesuhu/colorconsole?style=flat-square)](https://github.com/thesuhu/colorconsole/blob/master/LICENSE)\n\nMake console log more colorful. While developing, we often deal with console logs. This module provides four templates namely regular log, error log, HTTP log and SQL log.\n\n## Install\n\n```sh\nnpm install chalkconsole --save-dev\n```\n\n## Usage\n\nBelow is an example regular and error log.\n```js\nconst { logConsole, errorConsole } = require('chalkconsole')\n\n// regular log\nlogConsole('Hello world!')\n\n// error log\nerrorConsole('A very cool error here')\n```\nBelow is an example HTTP log.\n```js\nconst { httpLogConsole } = require('chalkconsole')\n\n// log request for dev\napp.use((req, res, next) => {\n  if (env == 'dev') httpLogConsole(req)\n  next()\n})\n```\nBelow is an example SQL log.\n```js\nconst { sqlLogConsole } = require('chalkconsole')\n\n// when work with MySQL\nlet query = mysql.format(sql, param)\nif (env == 'dev') {\n    sqlLogConsole(query)\n}\n\n// when work with Oracle\nlet query = queryBindToString(sql, param)\nif (env == 'dev') {\n    sqlLogConsole(query)\n}\n```\n\n## License\n","readmeFilename":"README.md"}