{"name":"tiny-colors","version":"2.1.3","keywords":["tiny","cli","terminal","colors"],"_id":"tiny-colors@2.1.3","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":"a6208f7998a74affcbf6fa3e4a2f1365df67a81b","tarball":"http://registry-npm.ywwl.com/tiny-colors/download/tiny-colors-2.1.3.tgz","fileCount":15,"integrity":"sha512-QKQBQx8Xm/jmaCDF8pdptiLWgmtbqEUgJnxqVeKQQcQP5XjGGImJ5hDHlDKAiwQhmp+xi3stYQZBedBMKzm+fw==","signatures":[{"sig":"MEQCIG//gtW4toBVZtIGOyTSdlnIDqnUBgFWjDee/9bu9XRCAiAaLhmWh4U/KdvGilYFEyk7saNsTrMwoFvpmDC+8pO9eQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11393,"size":3836,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.3.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"48e6ec3bee8c4be8e57b0467d7d182a52f84a32d","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":"^3.0.0","typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/tiny-colors_2.1.3_1712272882214_0.4670085387786411","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":1712272882359,"_cnpm_publish_time":1712272882359,"dist-tags":{"latest":"2.2.2"}}