{"name":"tiny-colors","version":"2.2.0","keywords":["tiny","cli","terminal","colors"],"_id":"tiny-colors@2.2.0","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":"26adc45e983037557b537b66abc51235be9bdbf0","tarball":"http://registry-npm.ywwl.com/tiny-colors/download/tiny-colors-2.2.0.tgz","fileCount":15,"integrity":"sha512-PfB40iPtxzTdvIA4QsnyCFQ+BKMvrIl2cvonZPa+sJRL/5MWdf8JNlgi/48uCrsjGPhsq+B3ole+uGn6Sot3Fg==","signatures":[{"sig":"MEYCIQDecNwdfuMqOb5wRZUrEbFlUOz43P6wME+ECiTfpVyoWgIhALKDgipaESwZbvwCT3gb2Ch1Mpc4TYIwXP43cBT93KNT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11521,"size":3857,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.2.0.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"03c03958dc4b50ed5ab680510aa2335b972e86cf","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":"10.2.3","description":"A tiny library providing the basic ANSI colors for the terminal.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"tsex":"^4.0.2","typescript":"^5.5.0-beta"},"_npmOperationalInternal":{"tmp":"tmp/tiny-colors_2.2.0_1716676004811_0.19726167927161908","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":1716676004968,"_cnpm_publish_time":1716676004968,"dist-tags":{"latest":"2.2.2"}}