{"name":"clorox","version":"1.0.3","description":"Node.js library for colorizing text using ANSI escape sequences.","main":"index.js","scripts":{"test":"nyc -r lcov node 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","ansi.js"],"keywords":["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":"^11.4.1"},"gitHead":"549a79324af5e87f968e7a6591daef83c67037b3","_id":"clorox@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"integrity":"sha512-w3gKAUKMJYmmaJyc+p+iDrDtLvsFasrx/y6/zWo2U1TZfsz3y4Vl4T9PHCZrOwk1eMTOSRI6xHdpDR4PhTdy8Q==","shasum":"6fa63653f280c33d69f548fb14d239ddcfa1590d","tarball":"http://registry-npm.ywwl.com/clorox/download/clorox-1.0.3.tgz","fileCount":5,"unpackedSize":5737,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChaZV3bw8EHjKDGXQ3x/1jz19xLsYXVoZIX96/9m9ExQIhAKDoJtKILgz8u/Otrdha+u9X4lHfIvK1mZIgnuC+f28q"}],"size":2655,"noattachment":false,"key":"/clorox/-/clorox-1.0.3.tgz"},"maintainers":[{"name":"jorgebucaran","email":"jbucaran@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clorox_1.0.3_1520225676662_0.5847649686750058"},"_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":1520225676717,"_cnpm_publish_time":1520225676717,"dist-tags":{"latest":"2.2.0"}}