{"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.","version":"2.2.1","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","colors"],"devDependencies":{"tsex":"^4.0.2","typescript":"^5.5.0-beta"},"_id":"tiny-colors@2.2.1","gitHead":"726f1724ffb0c0393b6696b2d0b2072a24581bdd","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-TfI6HAOtUH6SEIDF8hlztirPlbGKShLhKmSf8Wne0M8bvVFdleHuVhBZkR3UqJKhKs9oIkJYigv4yRaxHnoATQ==","shasum":"e76bef07780b9c74cfdcf8a3fbccc84d920b3d84","tarball":"http://registry-npm.ywwl.com/tiny-colors/download/tiny-colors-2.2.1.tgz","fileCount":15,"unpackedSize":11712,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrM9Ihhnjcs0QHmAWVYeJq95JbNtFaoKrIXG0BIwu4FAIgFtNRXyFvnLDSW068RHeNzJOM25KQR8ECc2W2UzQ0/Og="}],"size":3912,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.2.1.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-colors_2.2.1_1718053078020_0.5505323241992588"},"_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":1718053078183,"_cnpm_publish_time":1718053078183,"dist-tags":{"latest":"2.2.2"}}