{"name":"tiny-colors","version":"2.1.2","keywords":["tiny","cli","terminal","colors"],"_id":"tiny-colors@2.1.2","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"dist":{"shasum":"9eda73b0e7043f5fec45d5938bf041d2c97722fe","tarball":"http://registry-npm.ywwl.com/tiny-colors/download/tiny-colors-2.1.2.tgz","fileCount":15,"integrity":"sha512-6peGRBtkYBJpVrQUWOPKrC0ECo6WotUlXxirVTKvihjdgxQETpKtLdCKIb68IHjJYH1AOE7GM7RnxFvkGHsqOg==","signatures":[{"sig":"MEYCIQCkYSD94H7Fo0Y+hYjJfiwCxTBg2B+ZJYSiCZTckp8F3wIhALIdoo4K5ajkkVmbRNa19dhsZYLhYCQysf+ILiuYIF5X","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10464,"size":3649,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.2.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"36eea73789fc90f915789a38aa7f7cbd6b2f8136","scripts":{"test":"npm run test:color && npm run test:nocolor","clean":"tsex clean","compile":"tsex compile","test:color":"node test/index.js","test:nocolor":"NO_COLOR=1 node test/index.js","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/tiny-colors.git","type":"git"},"_npmVersion":"8.19.2","description":"A tiny library providing the basic ANSI colors for the terminal.","directories":{},"_nodeVersion":"18.12.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^3.0.0","typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/tiny-colors_2.1.2_1692961894196_0.10090126514123932","host":"s3://npm-registry-packages"},"readme":"# Tiny Colors\n\nA tiny library providing the basic ANSI colors for the terminal.\n\n## Install\n\n```sh\nnpm install --save tiny-colors\n```\n\n## Colors\n\nThe following color functions are provided.\n\n| Foreground | Background  | Modifiers       |\n| ---------- | ----------- | --------------- |\n| `black`    | `bgBlack`   | `reset`         |\n| `red`      | `bgRed`     | `bold`          |\n| `green`    | `bgGreen`   | `dim`           |\n| `yellow`   | `bgYellow`  | `italic`        |\n| `blue`     | `bgBlue`    | `underline`     |\n| `magenta`  | `bgMagenta` | `overline`      |\n| `cyan`     | `bgCyan`    | `inverse`       |\n| `white`    | `bgWhite`   | `hidden`        |\n| `gray`     | `bgGray`    | `strikethrough` |\n\n## Usage\n\n```ts\nimport colors, {ENABLED} from 'tiny-colors';\n\n// Unchained usage\n\nconsole.log ( colors.bgMagenta ( colors.italic ( 'foo' ) ) );\n\n// Chained usage\n\nconsole.log ( colors.bgMagenta.italic ( 'foo' ) );\n\n// Check if colors will actually be displayed\n\nconsole.log ( ENABLED ); // => true/false\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1692961894467,"_cnpm_publish_time":1692961894467,"dist-tags":{"latest":"2.2.2"}}