{"name":"tiny-colors","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-colors.git"},"description":"A tiny library providing the basic ANSI colors for the terminal.","license":"MIT","version":"2.2.2","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test:color":"node test/index.js","test:nocolor":"NO_COLOR=1 node test/index.js","test":"npm run test:color && npm run test:nocolor","prepublishOnly":"tsex prepare"},"keywords":["tiny","cli","terminal","color","colors"],"devDependencies":{"tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"tiny-colors@2.2.2","gitHead":"3cbc0e5afcecc2e69a2631558568b46cd1e699f6","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Elmv7JL+dX0c78caKEelH1nHHBskHzJkaqBRgVvQuxsvVA/Z9Fa2R3ZZtfmkkajcd18e96RLMwJvtFqC8jsZWA==","shasum":"3de6c296ebd0d9c3f438a43143925ce6012b3161","tarball":"http://registry-npm.ywwl.com/tiny-colors/download/tiny-colors-2.2.2.tgz","fileCount":9,"unpackedSize":6364,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD2gIz9TGeD/cFaMJwMDFAKeR0zH4nMhTXg/yc8EYceQIhAM+sDNNhkPUOCSKC1TFvX0jzmdiyOalXepexWnVuYzwd"}],"size":2773,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.2.2.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tiny-colors_2.2.2_1736640284527_0.13096052703351546"},"_hasShrinkwrap":false,"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":1736640284712,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1736640284712,"dist-tags":{"latest":"2.2.2"}}