{"name":"clorox","version":"2.2.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":"cbd8086b6d98fa849c50f4c78802ea9a083be5ff","_id":"clorox@2.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"integrity":"sha512-Txka+uPnVZEidjAJ4pWjHTfeZFf4+NY+gaHmrHVHQw8mzUSGfC7KFAi8tMvXwdxlSV5AbGE8WLEtt9GW3JVIeA==","shasum":"4422de98c60d15f2c2894e3f3cecee8919d62ef3","tarball":"http://registry-npm.ywwl.com/clorox/download/clorox-2.2.0.tgz","fileCount":4,"unpackedSize":6618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSHk2CRA9TVsSAnZWagAAogsQAJNlAGIaPRX1yUGb8fqO\ncQbhuiISql46PSfzTOK0Ufd7tJiKxd3mYHdza4J+YF/mn1DZsn8+MK2sySwj\nFhg4NIYhDgESiwsDk+XVeXvGdi9w+kAHkpSjgh3pDZ2GGgOM5y3WD11H3mSt\nfd8FuU5fQaQEssxd49cr53LDFZLSe3mTF8E/6xsNf0+LV33ujY0PigNeg9tJ\n437M7jogsuZ4jCGFZ1MTvLQpJmenVhU/9g8aX35kkLzJ6y2AXMAuVaTKo76U\nWEBYLHhJzbQJUp0fX7hoHf/34aTzLS6pA8jg5Ld87V5SdQlcBCjlgvTmhgau\nJ3UmiP/42f7dABRIBuhEj1dobp1WoqvgZBe/nFd/0vM2iwoWlAADI5nG3lec\nmOWgc7p1qFWoaxEN06DJVkhVjRPXaQl8RUs1QVlK9KiAkDhnE9lm/B0AbxX1\np2iGWUREFsMxr7DsuhMFtbAU+lOi9iRKb2QO1wDfP0WDlhAIYMlk9lIN8xTV\n4cTdSycSrybeqJCvpzBtcJCzLZACzrrYaxWnqLv1P0a60DXa3TDpX1HSFaYP\nHogXTDJlKieUP/w+WwDlKA/3q0cEo3bUwzAowcXEDlnBiUYkaT0eInsFAmdb\nk0pG8qYUE8Ryf8YoXCcYq8FYzD2Ogwp3Ur+lu7gOd1zuqvNgg6d08NHFUarK\nDDNA\r\n=Aq/k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjk4tkUgQfPuXMXpQiGW3HmQqiQJRXxNcHQWgdwRO2oAiB+njwk8xLBiGSzuc2+bZ2axCmDJ85/7xSp2bI+Y2Np9g=="}],"size":3206,"noattachment":false,"key":"/clorox/-/clorox-2.2.0.tgz"},"maintainers":[{"email":"mail@jorgebucaran.com","name":"jorgebucaran"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clorox_2.2.0_1531476277944_0.5543899158009722"},"_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":1531476278031,"_cnpm_publish_time":1531476278031,"dist-tags":{"latest":"2.2.0"}}