{"versions":{"0.2.0":{"name":"@kenworks/colorconsole","version":"0.2.0","description":"colorful console.log!","main":"colorconsole.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/kenblikylee/colorconsole.git"},"keywords":["colorconsole"],"author":{"name":"ken"},"license":"ISC","bugs":{"url":"https://github.com/kenblikylee/colorconsole/issues"},"homepage":"https://github.com/kenblikylee/colorconsole#readme","gitHead":"d0150cd5b6b333940decc771ebf3999e1d4cdbeb","_id":"@kenworks/colorconsole@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"anonymous","email":"blikylee@126.com"},"dist":{"integrity":"sha512-JcFTGDzvLWqYr3pB246S7lsCTre5whnL1qTxIQZH16UTK3cw7PZYmC8pkSDRoxFvAMpRV2sERDYDiHbT+CR6jg==","shasum":"b8014b4ffe358429f12edfd95d3a17298fc18291","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@kenworks/colorconsole/-/colorconsole-0.2.0.tgz","fileCount":5,"unpackedSize":8289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnAaWCRA9TVsSAnZWagAAm8sP/0/2k4HJ3Ieequ7ggdEs\n9hOtrcO1m4quwu1CV3oyoj7sNYHQqgSCw7BwHHES/Vqc1HeuUCz9IIekwa/z\n6uHzy/5vl1gwwa1RIvFw4p2VirwmloXl1zby+nZXwZsc6+i301Zzxe3IL0mx\nEKdlO5up10l9tTs8DgQ9LZQRSTQoWMkPJJnB6HBw7yzEhbhWnk6HzN47bwpa\nVubVvrLtesL/TC2NRNqFMyvfGS1/f+eFtRF/Fbt/t6TsjpgnmrNJ4G4ihaNi\nGx0u7Kb4bwtA4PnxQhWF1Cjk8pQA9NR7Hv12olL16yVA5q0eErfUaNvK8jOp\np28PjYTbacWU6kM7Wvivl1vOH09ek4E3uEmzX16Fs+4PytMA4CrPaSfzfcNw\ncj/nR7NZn2Cizmy3FhFJ3q7o6SfFKzjDY+gBkfLn7P1HZ48c2HJ+QAOVWxwa\n2c89ncaby55k1R76c8Hs4pCA60Gb0OBVQQgL1seJTeUTUFcqw8zlUu+jHxLD\njysBpn9LFCwxNYyjlfekZMUBezpwIHy7cAm370vPlTUd+YVHo1JM3SjJ2BR3\nei7NKXAvGv+Vc4MRiSrotl+gPilPDpg+pjYJGpji3WqAZBsilPvxXdhspQbJ\n+U06b3xfpSqQ388Z3bQVwmmPtBcXioqDaM7XL2eruHgXLc8owFO7MOT6OeIu\nSjrf\r\n=U8+J\r\n-----END PGP SIGNATURE-----\r\n","size":2702},"maintainers":[{"name":"anonymous","email":"blikylee@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorconsole_0.2.0_1570506389588_0.16830736827842552"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T07:55:03.997Z","contributors":[]}},"dist-tags":{"latest":"0.2.0"},"name":"@kenworks/colorconsole","time":{"created":"2022-01-27T18:51:39.387Z","modified":"2022-01-27T18:51:39.387Z","0.2.0":"2019-10-08T03:46:29.723Z"},"readme":"# colorconsole\n\n![GitHub package.json version](https://img.shields.io/github/package-json/v/kenblikylee/colorconsole)\n[![license](https://img.shields.io/github/license/kenblikylee/colorconsole)](https://github.com/kenblikylee/colorconsole/blob/master/LICENSE)\n\ncolorful console.log!\n\n## quick start\n\n### installation\n\n``` sh\nnpm install --save-dev @kenworks/colorconsole\n```\n\n### usage\n\n#### colorconsole.log(text, color, bgcolor, effect)\n\nprint colorful text in console.\n\n- text: string, text content to print.\n- color: string or int, color of text.\n- bgcolor: string or int, color of background.\n- effect: string, it can be 'bold', 'underline', 'blink', 'reverse', 'hide'.\n\n#### colorconsole.text(text, color, bgcolor, effect)\n\nreturn colorful text with ansi-escape sequences. which `colorconsole.log` invokes and has the same parameters.\n\n#### colorconsole.plate()\n\nconvenience to display color plate in console.\n\n#### color and bgcolor\n\nboth can be these 8 colors (when it's string): 'black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'. \n\nor, you can use integer which from 0 to 255.\n\n#### example 1: use `colorconsole.log()` and `colorconsole.text()`\n\nsave the following code to `test.js`.\n\n``` js\nvar colorconsole = require('@kenworks/colorconsole')\n\ncolorconsole.log('hello world!', 'red', null, 'bold')\n\ncolorconsole.log('hello world!', 'green', null, 'underline')\n\ncolorconsole.log('hello world!', 'blue', null, 'blink')\n\ncolorconsole.log('hello world!', 'magenta', null, 'hide')\n\ncolorconsole.log('hello world!', 'yellow', null, 'reverse')\n\ncolorconsole.log('hello world!', 'magenta', 'cyan')\n\ncolorconsole.log('hello world!', 228, null, 'blink')\n\ncolorconsole.log('hello world!', 9, 228, 'blink')\n\ncolorconsole.log('hello world!', null, null, 'reverse')\n\ncolorconsole.log('hello world!', 300, 600)\n\ncolorconsole.log('hello world!', 100)\n\ncolorconsole.log('hello world!', null, 100)\n\ncolorconsole.log('hello world!', 200, 300, 'blink', 'I\\'m %s!', 'ken')\n\nconsole.log(colorconsole.text('hello world!', 100, null, 'bold'), 'I\\'m ken!')\n```\n\nrun in terminal:\n\n``` sh\nnode test.js\n```\n\nyou can see like this:\n\n![](http://cdn.kenblog.top/colorconsole_log.gif)\n\n#### example 2: display color plate\n\n``` js\nvar colorconsole = require('@kenworks/colorconsole')\n\ncolorconsole.plate()\n```\n\n![](http://cdn.kenblog.top/colorconsole_plate.png)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2019 kenblikylee","users":{}}