{"name":"clorox","version":"2.0.1","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":"b7ad528912c50cac00259f63dd2e65e5e5daef43","_id":"clorox@2.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jorgebucaran","email":"mail@jorgebucaran.com"},"dist":{"integrity":"sha512-kRRoEIoOFXCyKq3W+FV0RYT0oVmz6wsuKdx6o7XXnpfOttqRtJ9QjtU54Wl90hoEYdwUYQ4H+SGgxmWOOkX0rg==","shasum":"537b81dc5bbdefb117c1c51a04b2c0c2c6d34103","tarball":"http://registry-npm.ywwl.com/clorox/download/clorox-2.0.1.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\nwsFcBAEBCAAQBQJbRjuxCRA9TVsSAnZWagAAUywP/0CXvxPhLBoxGmCfxO2s\nDC/29BtaOYI0z6RZqeItAMYfjOyuHMwkjbGrPL2aVCs6FkYv15Cu14WyzyID\nPZ1z+BSwTYNL/FbVpnvukw6lry8980bIRiittogRKvJGTNYfkASc3yJ33ulf\n9dNdtvJ/s1zH3iWYqWjxBji4Qxo/rjsps6M+lYI7iAjS/QENFyCldk/0izcH\ninQPKwxzOi2IVJaW5CPSoU6QzHM6RIxDYB/SWTYK5ch2x/3c8QNtdenHIX0p\n+pPR5PmBTqPmbLvMqWdQ9kUclZYgphN6Pr5h8EYWr3w3VTfiLN21OmlAT6hI\nQwqOgxDpHEXCUMHU9WsuuHbvaYqcWhZ+u/zn0gUlkg6V0NgIx/tWZnb5Blui\na/kPzF34//SWMGNmdG6WMVFnEQPw4UmPFuHskQgaKEEss6Ahyy/tLwYY4KcK\nGLBilKKSIuPXPUvzfnSBcmGrVnyfsZ4dVgR5nO5sf48mstt5a58kVwICT0Xb\nZLwoPMukbXTxLAQ0QjrZXFti7hd+gh9KKIemlQLdgHVdBQct4bcomVxFbj6m\nZbVLv/U0wgJbLjvbooLga2BW8HAS4R932GP4prsHjCnscQ3Om3MbQqFLfURD\nHYr4MZKil+od/eZwxKtz988QCezaj9wy7hnwz86RJySjdkKZppZrwNC/e1i7\nJuoD\r\n=0ROL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7LyyEZxnxrf9co3rtoQDj5UAVAAHGecvf0bwyEIngigIgG1mc0GEHmgAzXgCiEgUJn9FjiL4I7+KEvdTqUR8KhwM="}],"size":2784,"noattachment":false,"key":"/clorox/-/clorox-2.0.1.tgz"},"maintainers":[{"email":"mail@jorgebucaran.com","name":"jorgebucaran"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clorox_2.0.1_1531329457680_0.8788375756652664"},"_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":1531329457762,"_cnpm_publish_time":1531329457762,"dist-tags":{"latest":"2.2.0"}}