{"name":"tiny-colors","version":"2.1.1","keywords":["tiny","cli","terminal","colors"],"_id":"tiny-colors@2.1.1","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":"9b524a929c2db05d76ddaed6cd9a247b5416a6d9","tarball":"http://registry-npm.ywwl.com/tiny-colors/download/tiny-colors-2.1.1.tgz","fileCount":15,"integrity":"sha512-PWRibfnWqWpis+7CVbrh9eT9LfifIoLqFh/vF5vLrSMwKOXeumVyfaJGcQQ/4gDGCt9SgW0QWZBlipROZEprRw==","signatures":[{"sig":"MEQCICOx4+UH9+VHEUXt3ZCn3flJQTZKDvWg2PGWOAT1DOHtAiAu7j0kzr5U4ChvLKCqEzzHSnKiYO23avNBaFl41JSqHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10404,"size":3641,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.1.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"e5f6cf3021ca4a9028b06295e0f4c5c4bbefda45","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.1_1692961315797_0.6238220666243177","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":1692961315970,"_cnpm_publish_time":1692961315970,"dist-tags":{"latest":"2.2.2"}}