{"name":"clorox","version":"2.0.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":"4646456f6e5079cb736916dcf20bc5df97a4fb6c","_id":"clorox@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"integrity":"sha512-zVxrkwqirkNkhxaypsDwSnSXZkvVeJNF+AY5nldqQYKEYMOMCFWK6nQlgP3WiHexDNv27GC1XP6521NxYNCThw==","shasum":"07ccc8828f6a15f2aab34ffa6ff52b88e67d5355","tarball":"http://registry-npm.ywwl.com/clorox/download/clorox-2.0.0.tgz","fileCount":4,"unpackedSize":5815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRjq/CRA9TVsSAnZWagAA34oQAIEiPnZnH1xa4xAEfigU\n42nvj8r8D3fE2FI+KSDvWTv0gffkfy7lhgNNyoqya+bNT8IrLWMoxc0pG7EJ\nYojTyb+ET33/BxMuXLQIVlm7ozIaWWBETGhnSvkDBeqbOxa/0M5MrNy3dUpL\nOr15XPPVq1MGly53KnqsSj/zBYueZaS+ueF80L1NgdzYtidSsH+d4c2t0rko\nktLF5RCnRguFVxKJMGP+YvgeIJKMFYZDr97wVatWhblFxZRG1kqGQmEihP8g\nCaThA7kXx0wz7utQBeuM6sNB4u97B053+udRwqCiWG3eCRN69c87BOmdIut9\nCcvrUuDKGnAFna4RqtDfzkePYKMWuGyLs52xbGODwrgQkhWslc6ZqeQCnjrR\nHfLdThXzjUANJ4NKViaO7f9bBWdUef+TDjtVA7KEqo69hpnuXn6NjtLMobXU\nC1fmm9qQ3edKgBl4eaUa6JX/RlTw//HNPI0zdRTES/zqp+aU8cGRe6Gn3Hif\n8MTFA6p+7zjegcIhyxwa7zRXSJ7DcYnJga7mpTTXMjjV73O7O9f+rOqfUgyh\nx8pOLVeY2Lx/vACDNtqhYaOvZWjNWkx7T2HlgP2ETMssZoe9XgGM5PYUsP6g\n0nur3h2R65DSJRcyR2MK37SXNtGm9cqcJlJEQ8rwufc6aFkPUoBsC6i9XAQN\nj347\r\n=tFKe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf0f8o6HaAO/FIMISP1dMJ1YP1sBoN5dIRmxmpcw0YRgIhAI4mOsiSbRfo//8dkyKPKgopWEbneCiohjzOiQKEZ8ad"}],"size":2784,"noattachment":false,"key":"/clorox/-/clorox-2.0.0.tgz"},"maintainers":[{"email":"mail@jorgebucaran.com","name":"jorgebucaran"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clorox_2.0.0_1531329215208_0.028422633019887122"},"_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":1531329215283,"_cnpm_publish_time":1531329215283,"dist-tags":{"latest":"2.2.0"}}