{"name":"tiny-colors","version":"2.1.0","keywords":["tiny","cli","terminal","colors"],"_id":"tiny-colors@2.1.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":"db4a58b21af3d35a620f6fd222860913112b1392","tarball":"http://registry-npm.ywwl.com/tiny-colors/download/tiny-colors-2.1.0.tgz","fileCount":15,"integrity":"sha512-NgRIQzfEm7D9QlCoYnknjdKsxOnUy61cIJmtX9Hi9DuNTeHZHS5bLFHodpgo3cOMwPKkY6ugY1C557R43LwQ9w==","signatures":[{"sig":"MEQCIGHBbUU7gmNyt9DrytHPUW2vwe1y4C3CAJCSmhipq7M0AiAlfnZwn3jmYzm1aeu2xmtyc4kAITw0lzeTy+r8eV/fZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10304,"size":3613,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.0.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"8f876c442dc8a1769f992a4149d843a368baad96","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.0_1691839930764_0.7249129813579962","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":1691839930934,"_cnpm_publish_time":1691839930934,"dist-tags":{"latest":"2.2.2"}}