{"_id":"l-print","_rev":"9-f4b876cde248e34bdc5172f595ac226b","name":"l-print","description":"Color and format for nodejs console.log","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"l-print","version":"0.0.1","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","_id":"l-print@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-PCpy8C6B8k8Q2mL2wob41EWNMqvZs+PpZ6A++/3TY8hFfWF6l98ZTEmQ8DspaNw8Z92Idk48RE/qiVUcwO51bQ==","shasum":"25177b7762bd39941a16b1abe01e9fc40bc4ca6d","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGTyi7jQQ0T3MzYcCkRJ1557ZvQDlKJFFiWR199MPoXTAiBqm1E7E/H5cDjr22x/uRu0niXAqk+tEld5sl4509xjRg=="}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.1.tgz_1517163053588_0.2184786496218294"},"directories":{}},"0.0.2":{"name":"l-print","version":"0.0.2","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"de62ee692e5e67ca88a2ab22a80dfb8305cea567","_id":"l-print@0.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-JjaYR1omP962zqyYeoZ8ZqIFj3UuVmaFoGeYHj6HKggJRE5oaFrhnrZd1eqXEUoKW56YHBT2FBT4E3BIGRQrgw==","shasum":"b8db303264c5f3f2fe5f0b7e49313e83abfd3833","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhtgAtsWP05vSleckD+ypVHCTYPv4/ENAJcokd61UfnAiB/fq5uYotJuRGNhZ6EkmX4r+oRUxhJf5g6ij0dPk8o/g=="}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.2.tgz_1517427047097_0.66976761771366"},"directories":{}},"0.0.3":{"name":"l-print","version":"0.0.3","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"f5b6bf241e66e24211434e96bcd08962571605f7","_id":"l-print@0.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-eyOJ9yKj7etRrl6fPaOkVAQs+lG+esXGU2CPEsZVwdrmq1bLvY8VdA/iwNcFeDBdJpFWPXGmRp+jx7iH/b4bOw==","shasum":"60259a7791b14b3379f672c603ef652f6b621f08","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsRm1SxmYD0eDjSSIXprVibC6tV0GX6SmApVSU7zshcAIhAJmKMLpOUAmfT9ev12yNWwoxhhRZcLxn0GqVbNXjF6UL"}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.3.tgz_1517431880529_0.8263667502906173"},"directories":{}},"0.0.4":{"name":"l-print","version":"0.0.4","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"b478c4ad724afd03a94dca9422bc6b1cf47b9e7a","_id":"l-print@0.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-2FrZph66fmSZjVQf8wjN85qyhmMiyGNxNoxiNG5KYJ4jzjv55ypH+aHVtNK/2ZeP/MxxGepMxSy0eTA9IQGzQg==","shasum":"d4036291b564c56b9c5a9391893e636a6b1e2e75","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNgDLGA0SC78GJSWj01JwGzj0ByHCLb8ka4EEGDjuv3AiEA7CwFnV0CRwa+8P+oY7036LJkYiEFQtL/tFG+M3vJmyk="}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.4.tgz_1517434271459_0.5210126838646829"},"directories":{}},"0.0.5":{"name":"l-print","version":"0.0.5","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"9d5aa3678b34592eed53af14e0854d2297019c68","_id":"l-print@0.0.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-WjRDrkztMjzvgKBPctjAP41T9YDorx3L5ZMusd7f0chCMHP7G7qtkisBg+jZs14JE4dmOIw6AFzvyNiPIBurEQ==","shasum":"7ca6f158c1f1bfd13536a5d2cabd98d3643cdecd","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0BqImhzlghCNGAjrKQI9QZLMUdsGXrpVBiZAGx/WXMAIgf8RjXuIz1P1NvuD4DUWFXKgXcUIL79I7iZTQHupyp00="}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.5.tgz_1517584110593_0.12847288814373314"},"directories":{}},"0.0.6":{"name":"l-print","version":"0.0.6","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"c762cb2d895b41acaadb33d6874bf49189e71fbe","_id":"l-print@0.0.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-g2eQREe3JtRW1RNOAE2ISscruNlWWdJRMO9+OUSzBMDdGpOeDA89t6BGTC6zqBtg1D2u7atJt1NcDoXM5rkELw==","shasum":"25627220d8460eccf64b34e30c2b3f5cc8c41515","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+Lb/gTDN9vrplk4kcjj8hLrhF9B8juZ+DmXPJxw9acwIgcI8QdQAO2RqC9Av4dE3JBNPT6K8J6xjLIpjuEJom+rA="}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.6.tgz_1517585537541_0.9713981149252504"},"directories":{}},"0.0.7":{"name":"l-print","version":"0.0.7","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"aead1f73fd160b0c5adc3dfdebbc152ed8a32a52","_id":"l-print@0.0.7","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-bvJMFxmuluMHYFBNdNSh5lWmdbK8w6wnrhUkqEDLS8WsjS/Bq/ZGWx3XvQVEnPj2QSVQQqBFZYQWCXUlv65doQ==","shasum":"4ea1a92cccae601ef37b538e88adb7d52b9719f0","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWMSemlgfzTBYeMo3A8wiw72TUMB+XPrTXPoV0O4xD7AiABSezKek2Fx2J/HfkBf8z8YlsYbWw0lg599qgeaiVj9A=="}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.7.tgz_1517587528116_0.4044399759732187"},"directories":{}},"0.0.8":{"name":"l-print","version":"0.0.8","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"81852bb89c17790462b52ed085fff0800bfc22c3","_id":"l-print@0.0.8","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"dist":{"integrity":"sha512-V9KIIKl2ksUgb403IjGMhXZTB9mCO++MWw/baOctp2CoGBjBoERg8yqoFX3Oyv0go7HSPa/Nwo4iBLGti/niEw==","shasum":"eba6b0598aa94a70a5a4c1469d3fe32f95f2faf5","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICSrSn8Zzs3TatI9zGIj9EDa4DB1Z40QHpHECexgk0eDAiEAouCZ1KrxhF/Z+/88Bh5mebmoaEW+k5C8JIOQ49VAqMk="}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print-0.0.8.tgz_1517591911202_0.6461469121277332"},"directories":{}},"0.0.9":{"name":"l-print","version":"0.0.9","description":"Color and format for nodejs console.log","main":"index.js","scripts":{"test":"node test.js","start":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"keywords":["javascript","nodejs","node","js","console","log","color"],"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"homepage":"https://github.com/mishaszu/l-print#readme","gitHead":"91099362726028bcd61d70dc2f84b5a21ceab71c","_id":"l-print@0.0.9","_nodeVersion":"12.11.1","_npmVersion":"6.13.0","dist":{"integrity":"sha512-PgyNPwrYnTVcGpQT0CIe0oVnUwl0GVhzFt6HCUKbeU3JZnnKldqpla4vjsC0HEa4NWjHXDsICeeks3Nn3l68yg==","shasum":"6ac7dcf0e4c3eb221a1a64b73050d88eb99a0305","tarball":"https://registry.npmjs.org/l-print/-/l-print-0.0.9.tgz","fileCount":25,"unpackedSize":11364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzI8aCRA9TVsSAnZWagAAayYP/j2Hm7SDNQMNr6GoZCvo\nhniVGPiAR1n2DhMxk0xu6iQn/JUbDfZcIjUCGomxme36Arq1AQQdiR57WzP5\n5B8EBXXpXUqFQLhtvqyt95SQ33LCsKudjMpTUA8L2edi3+8gE8W5t+8jefQ3\n3WocrsFfW51FOThzj5qJpyaLs40y4lqForGLm2lEBkrdIpi8Qewo4uWm5v7v\nobPjlRUat+Q5tskLVstaNb3rdDQhRCpfyizc0cfaeLE1Ip54tUxEmQlR6A3s\nlqG825GVeBbjVPNF/roY0ALji/S3laqehNFfcA5LW74G1EzaBFbd+2GlLG8y\n05f1yB0jTbgBDNjhCUMzkVV+u7Cn1pZMsnPjQyLJPcVsVMDd7e7A48x9Ddo6\n844qwz0YiX4hZJzvGJ1nAxIEy+55gOGbEDbD9mt1CS9+qKqXc6IHBKI4Jji3\nPremccxYSPnZAhm/8IhiUm+uHalhRP53e15eGbCT4fYz/M8aV2Xz5mf2rMKe\nTi2wU/pCIfWuQXcUDn9xq29gIIJRLVz0RTy5vfAkzKJh+2yp+MALNQVdeKJl\n2Akf3XfINKyeocvVPabUJureyeKIcQqTqLckTFtwiMmJRgA6xtYfv8KXbQEz\nyyaH4K9NnZpjivMPJc67MK+e6vQyulWAmXwOtR/AEqh9FQKigR4SRWmPIbtF\nXX8N\r\n=c4lb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLOChPFG0YXzq4e3qf4EkRWnZbtBFPrpaH7VlHJBwsJQIhAJYzww7OUENzKmrGiSeC3F2yOLnyCnJHNNXFr0aVkZrK"}]},"maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"_npmUser":{"name":"mishaszu","email":"mishaszu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/l-print_0.0.9_1573687066453_0.9816945597483226"},"_hasShrinkwrap":false}},"readme":"# l-print\nColor and format for nodejs console.log\n\n## Nodejs console logger\n\nLibrary purpose is to format nodejs console to make output more readable.\n\nExamples:\n```\nconst l = require('l-print')\n\nl(`It's error message`).date().text('ERROR').red().log()\n// [22:22:22]<<<<ERROR>>> It's error message\n// printed with red font color\n```\n\n\n## 2 way to log\n\n### Regular logging\n```\nconst l = require('l-print')\n\nl('here is test string').lvl1().red().date().log()\n```\n\n### creating logging patern\n```\nconst l = require('l-print')\n\nconst error = l().pipe('red', 'date', 'log')\nerror('print this error')\n```\n\n\n## Doc\n\n### **library function**\n```\nrequire('l-print')\n```\n*l-print* is function that return printer object\nIt's accept argument that represents text you want to log\n```\nconst lPrint = require('l-print')\nlPrint('Here is text to log')\n```\n### color\nColoring console font\nSupported colors:\n- blue\n- black\n- cyan\n- green\n- magneta\n- red\n- white\n- yellow\n\n**usage**\n```\nl('text').red().log()\n```\n\n### bgColor\nColoring console font background\nSupported colors:\n- blue\n- black\n- cyan\n- green\n- magneta\n- red\n- white\n- yellow\n\n**usage**\nto use add 'bg' bedore color and uppercase first letter\n```\nl('text').bgBlue().log()\n```\n\n### effects\nApplying effect on console text\nSupported effects:\n- bright\n- dim\n- underscore\n\n**usage**\n```\nl('text').underscore().log()\n```\n\n### pad\nAdding space or characters before logging text.\n```\npad(number, string)\n```\n- number: number of characters to pad at start\n- string: character that will be padded [optional]\n\n**usage**\n```\nl('text').pad(5,'.')\n//.....text\n```\n\n### lvlx\nSimilar to pad but with predefined padding value\n```\nlvlx(string)\n```\n- string: character that will be padded [optional]\n\n*levels:*\n- lvl0: no padding\n- lvl1: 4 paddings\n- lvl2: 8 paddings\n- lvl3: 12 paddings\n- lvl4: 16 paddings\n\n**usage**\n```\nl('text').lvl2('>').log()\n//########text\n```\n\n### date\nConsole log will be preceded with date in format:\n[HH:MM:SS]\n```\ndate()\n```\n\n**usage**\n```\nl('text').date().log()\n//[22:22:22] text\n```\n\n### text\nAdd descriptive text before text and padding (but after date)\n```\ntext(string, array)\n```\n- string: text to display\n- array[optional]: index[0] opening characters, index[1] closing characters by default ['<<<','>>>']\n\n**usage**\n```\nlog('text').text('ERROR').log()\n//<<<ERROR>>> text\nlog('text').text('WARNING',['###','###']).log()\n//###WARNING### text\n```\n\n### pipe\nIt enable to create other way of logging by predefining pattern\nas parameters it accepts other *l-print* function names\n\n**usage**\n```\nconst error = l().pipe('date', 'red', 'log')\nerror('Error message')\n//[22:22:22] Error message\n// printed with red font\n```\n\n### log\nLogging to console\n```\nlog()\n```\n\n","maintainers":[{"name":"mishaszu","email":"mishaszu@gmail.com"}],"time":{"modified":"2022-05-07T14:03:35.082Z","created":"2018-01-28T18:10:54.493Z","0.0.1":"2018-01-28T18:10:54.493Z","0.0.2":"2018-01-31T19:30:48.420Z","0.0.3":"2018-01-31T20:51:21.393Z","0.0.4":"2018-01-31T21:31:11.541Z","0.0.5":"2018-02-02T15:08:31.487Z","0.0.6":"2018-02-02T15:32:18.476Z","0.0.7":"2018-02-02T16:05:28.209Z","0.0.8":"2018-02-02T17:18:32.170Z","0.0.9":"2019-11-13T23:17:46.571Z"},"homepage":"https://github.com/mishaszu/l-print#readme","keywords":["javascript","nodejs","node","js","console","log","color"],"repository":{"type":"git","url":"git+https://github.com/mishaszu/l-print.git"},"author":{"name":"mishaszu","email":"mishaszu@gmail.com"},"bugs":{"url":"https://github.com/mishaszu/l-print/issues"},"license":"ISC","readmeFilename":"README.md"}