{"name":"clorox","version":"2.1.0","description":"Node.js library for colorizing text using ANSI escape sequences.","main":"index.js","scripts":{"test":"nyc -r lcov tape test/*.js && nyc report","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push origin master && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/jorgebucaran/clorox.git"},"files":["index.js"],"keywords":["clorox","color","terminal","cli","ansi"],"author":{"name":"Jorge Bucaran"},"license":"MIT","bugs":{"url":"https://github.com/jorgebucaran/clorox/issues"},"homepage":"https://github.com/jorgebucaran/clorox","devDependencies":{"nyc":"^12.0.2","tape":"^4.9.1"},"gitHead":"32de3d7f316cfce3d48fdefcb30e30ff10adfd4e","_id":"clorox@2.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"integrity":"sha512-c2XAdkDEp8Q5Miso3exZbUVov1MRiGB7jonJ2eTg6NpRaEmL3MyLmYIFpB1NuGKWKsStTov4rr/2bHwVSMyBUA==","shasum":"9619783cf0230dcd1e33555fa5058f97d6bca593","tarball":"http://registry-npm.ywwl.com/clorox/download/clorox-2.1.0.tgz","fileCount":4,"unpackedSize":6366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRr9GCRA9TVsSAnZWagAAjwoP/2jQp4LKCSOSIlAsp6Nw\nvQksbJBQeM1fN/aWzLB56I5z5CGw/W804qCvZEcbg7+x6ZgavXQwkiepxLUf\njr3HJSAfAeq+opDdD5NocBsT7V+zqzZjscfWW/sAIB62ybWdePv5n9JROlUE\nJXmijO5BC/PsswD/IzGvXNidqZjemTBMgPq8LqUW1IinrvRaOf+0o1aMUZWQ\ngdI5FrC7B22+aNUfoHHX4LqnlTtgQpHcn53NnS3ii4c0pdyUgvaRtA0E80hL\nhPMpAdHjyVh+hnxvKG/ChDRThqW8H89KuWSHkRcs42cIlaGbqv1HG/AEmfIl\nuG7zGvFAwF2mMdBl4j5RLHpt4h4AODwzChfosKRYU5IzD5prUVLLZb4DA9SP\njgPhv9qI+88VqvSnB91aSJNIZ5TIfiup0ZyCaylCtOqH/GTWgo+5eSDu2jBf\nwj4SX3TxB3cqKYBxhz+WuhNLgAAjztKlqYj5oxHgv2Vqgfh22jS7CaZhVwbR\nb5TU2uJvIHsLBr/GNCNGN8q0nIno0rdYNlyoPalyG1va5ktMVsMNA58URAaG\nQEnxS6InNzXrn2PoNm4i2+UwVlc7A/xzeCYoLIEFn/+thWx5twGusvJ/NgP2\nkfte1LPAQUPhncvZpxQyOZz0COL783T1qck3cLCW71DQ1SYCxuWRPq4Vtdu1\nE0P3\r\n=3hJN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPq3ujEH6JcoyCKRv+QoGEWOWe6e0sc89C1VQGu+EKmwIgbtZapHF3sW3tyw5vM06vX9c0oeZCEeBW4HY0G/0NZyo="}],"size":3079,"noattachment":false,"key":"/clorox/-/clorox-2.1.0.tgz"},"maintainers":[{"email":"mail@jorgebucaran.com","name":"jorgebucaran"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clorox_2.1.0_1531363142907_0.007795009565353173"},"_hasShrinkwrap":false,"deprecated":"Clorox is now Turbocolor!! - Please upgrade <3 'npm i turbocolor'","readme":"# Clorox\n\n[![](http://img.shields.io/travis/jorgebucaran/clorox.svg)](https://travis-ci.org/jorgebucaran/clorox)\n[![Codecov](https://img.shields.io/codecov/c/github/jorgebucaran/clorox/master.svg)](https://codecov.io/gh/jorgebucaran/clorox)\n[![](https://img.shields.io/npm/v/clorox.svg)](https://www.npmjs.org/package/clorox)\n\nClorox is a Node.js library for colorizing text using [ANSI escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code).\n\n- **All-in-one** — Not broken into a dozen modules that only work together.\n- **Eco-friendly** — No modifications were made to the [String.prototype](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/prototype) in the making of this package.\n- **It Just Works™** — Auto-detects color support and [degrades gracefully](https://en.wikipedia.org/wiki/Fault_tolerance) without contaminating your terminal with broken escape codes.\n\n## Installation\n\n<pre>\nnpm i <a href=\"https://www.npmjs.com/package/clorox\">clorox</a>\n</pre>\n\n## Usage\n\n```jsx\nconst { Clorox: x } = require(\"clorox\")\n```\n\nWrite with color.\n\n```jsx\nconsole.log(x.red(\"Bonjour!\"))\n```\n\nChain expressions.\n\n```jsx\nconsole.log(x.red.underline(\"Hello\") + x.blue.bold(\"World\") + \"!\")\n```\n\nCompose a color expression using [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals).\n\n```jsx\nconsole.log(`\n  Oil: ${x.bgBlack.white(42)}\n  Gold: ${x.yellow(150)}\n  Lumber: ${x.green(10000)}\n`)\n```\n\nNest expressions to reuse styles.\n\n```jsx\nconsole.log(`Normal ${x.bold(`Bold ${x.blue(\"Bold/Blue\")} Bold`)} Normal`)\n```\n\nUse [string substitution](https://nodejs.org/api/console.html#console_console_log_data_args) for easier formatting.\n\n```jsx\nconsole.log(x.green(\"Total: $%f\"), 1.99)\n```\n\n## Styles\n\nClorox exports ANSI escape codes which you can use for manually styling console output. They can be useful for testing your actual output matches the expected output.\n\nEach [style](#available-styles) has an `open`, `close` and `strip` property. The `strip` property is useful for removing the previously closed escape code within a nested expression.\n\n```jsx\nconst { STYLES } = require(\"clorox\")\n\nconsole.log(`${STYLES.red.open}Red${STYLES.red.close}`)\n```\n\n### Available Styles\n\n| Colors  | Background Colors | Modifiers         |\n| ------- | ----------------- | ----------------- |\n| black   | bgBlack           | dim               |\n| red     | bgRed             | **bold**          |\n| green   | bgGreen           | hidden            |\n| yellow  | bgYellow          | _italic_          |\n| blue    | bgBlue            | underline         |\n| magenta | bgMagenta         | inverse           |\n| cyan    | bgCyan            | ~~strikethrough~~ |\n| white   | bgWhite           | reset             |\n| gray    |                   |                   |\n\n## License\n\nClorox is MIT licensed. See [LICENSE](LICENSE.md).\n","publish_time":1531363142963,"_cnpm_publish_time":1531363142963,"dist-tags":{"latest":"2.2.0"}}