{"_id":"colorize-template","_rev":"4-427a14a70db64c73d048300d581299a5","time":{"0.2.0":"2021-10-06T21:57:59.441Z","created":"2021-10-07T22:05:55.397Z","1.0.0":"2021-10-07T22:05:55.581Z","modified":"2022-04-27T13:43:29.987Z"},"name":"colorize-template","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"colorize-template","version":"1.0.0","description":"Tagged template literal for ANSI colors.","keywords":["colors","console","formatting","terminal","nanocolors","picocolors","colorette","kleur","colors.js","chalk"],"author":{"name":"Usman Yunusov","email":"usman.iunusov@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/usmanyunusov/colorize-template.git"},"main":"index.js","types":"./index.d.ts","browser":{"./index.js":"./index.browser.js"},"sideEffects":false,"benchmarkDependencies":{"picocolors":"^0.2.1"},"gitHead":"80c37279ff95d1cbd7456712985d8e384d2bf22b","bugs":{"url":"https://github.com/usmanyunusov/colorize-template/issues"},"homepage":"https://github.com/usmanyunusov/colorize-template#readme","_id":"colorize-template@1.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-beJ9v9RjpbYZ8OdwJgIRZD3YUkZPXmi1MK+yX0J24UupKVHa9yk0jiARgt2i6MBX6AKjYA0SNsBn65bUPuVQiw==","shasum":"be3b8b12ba155f82a5b8aa4d9cd1381ce1cf8eea","tarball":"https://registry.npmjs.org/colorize-template/-/colorize-template-1.0.0.tgz","fileCount":7,"unpackedSize":4872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2mbsCRA9TVsSAnZWagAAWBIP/3uD8I6CmvV0BGjRIBrw\nBWrzfknDSHbJFe6rMLu4Fcis1OJSlOe7Bsj8oZbyJmNz8jJkSyx3MAOsIMpt\nXG/frIGWQVCawldNrXGG2fzTt1z2eYBvODTL+DsnzGgg3wNRpiB90h4nlTPD\nAaOMDoAGjyXlSr1O16qizQzNDeru+5D1I4C8wx7x7vevvMJugDxapDnXuRMM\nOXtH+r1+s60uBDhkwIE74PQR8SGBkDM9fhE5Yr6q7u5SkF6i7OL3Ap5bZN1b\nBbxaij+4uokDoe4YdGtkQxb1r1u8CiNaL+k7G/8sPD5yqPMMu3a2aAp0XwuE\n/VoG9wJqqoy75wyCQCVCmpRAUzHFoYBABfd+gpZLJvxG3c0DHdbxr/bsyASR\ncD/wwkx+XteCEu8QyaF1WI3OVD4os3/j71bZ3zMnY0XMMB16Bkw1m9KEFWZG\n33jvClAEbsO5m1JmpWy5ijSnMLgZauGsiiNFNFCDhdUE77R8mKfvCCyhLUVO\nWqiKTMVE7uM4JhrqIw2q8TjjB/Fp1uNv2caUbRmVTWvyGWInbaN7+U4+7BP6\n6ew8L+GKM7dh/Z95cXncfr/pdlcVwQUnTg+JjaBFI5RubfNUJ+FUYtrNeg4B\nrHOJ4zco6n5CX4EWheHMpKhu8yPnPGLqnTXdJkKWjOc6OrieSsUvPRYTbCs5\n1v44\r\n=gKQZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENgXUKC699OiYsyLehkaBBrjcMBPcgf9Uys82EC2SsOAiAGjd7iJi9qVanChdWH7YYrDqcFA66U9a3y0KNX2xXMdA=="}]},"_npmUser":{"name":"usmanyunusov","email":"usman.iunusov@gmail.com"},"directories":{},"maintainers":[{"name":"usmanyunusov","email":"usman.iunusov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorize-template_1.0.0_1633644355397_0.9505886802757653"},"_hasShrinkwrap":false}},"maintainers":[{"name":"usmanyunusov","email":"usman.iunusov@gmail.com"}],"description":"Tagged template literal for ANSI colors.","homepage":"https://github.com/usmanyunusov/colorize-template#readme","keywords":["colors","console","formatting","terminal","nanocolors","picocolors","colorette","kleur","colors.js","chalk"],"repository":{"type":"git","url":"git+https://github.com/usmanyunusov/colorize-template.git"},"author":{"name":"Usman Yunusov","email":"usman.iunusov@gmail.com"},"bugs":{"url":"https://github.com/usmanyunusov/colorize-template/issues"},"license":"MIT","readme":"# Colorize Template\n\nTagged template literal for ANSI colors.\n\n- **No dependencies.**\n- Node.js v6+ & browsers support. Support both CJS and ESM projects.\n- TypeScript type declarations included.\n\n> You need to provides an object which includes a variety of text coloring and formatting functions. You can use ready-made projects: [Picocolors](https://github.com/alexeyraspopov/picocolors), [Colorette](https://github.com/jorgebucaran/colorette), [Kleur](https://github.com/lukeed/kleur), [Colors.js](https://github.com/Marak/colors.js), [Chalk](https://github.com/chalk/chalk)\n\n```js\nimport { createColorize } from 'colorize-template'\nimport * as picocolors from 'picocolors'\nimport * as colorette from 'colorette'\n\nlet colorize = createColorize({\n  ...picocolors,\n  success: picocolors.green,\n  error: colorette.red\n})\n\nconsole.log(\n  colorize`Is red {red color} text`,\n  colorize`Run {yellow.bgRed ${'yellow'} test}`,\n  colorize`Is red {error error and success {success green text}}`,\n)\n```\n\n> Blocks are delimited by an opening curly brace `{`, a style, some content, and a closing curly brace `}`.\n","readmeFilename":"README.md"}