{"_id":"tiny-colors","_rev":"3757983","name":"tiny-colors","description":"A tiny library providing the basic ANSI colors for the terminal.","dist-tags":{"latest":"2.2.2"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"time":{"modified":"2025-03-18T07:12:45.000Z","created":"2022-04-03T21:14:12.788Z","2.2.2":"2025-01-12T00:04:44.712Z","2.2.1":"2024-06-10T20:57:58.183Z","2.2.0":"2024-05-25T22:26:44.968Z","2.1.3":"2024-04-04T23:21:22.359Z","2.1.2":"2023-08-25T11:11:34.467Z","2.1.1":"2023-08-25T11:01:55.970Z","2.1.0":"2023-08-12T11:32:10.934Z","2.0.2":"2023-02-11T03:03:06.625Z","2.0.1":"2022-04-05T00:35:17.746Z","2.0.0":"2022-04-04T23:41:06.794Z","1.0.0":"2022-04-03T21:14:12.788Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-colors.git"},"versions":{"2.2.2":{"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.","license":"MIT","version":"2.2.2","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","color","colors"],"devDependencies":{"tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"tiny-colors@2.2.2","gitHead":"3cbc0e5afcecc2e69a2631558568b46cd1e699f6","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":{"shasum":"3de6c296ebd0d9c3f438a43143925ce6012b3161","size":2773,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.2.2.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tiny-colors_2.2.2_1736640284527_0.13096052703351546"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-12T00:04:44.712Z","publish_time":1736640284712,"_source_registry_name":"default","_cnpm_publish_time":1736640284712},"2.2.1":{"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":{"shasum":"e76bef07780b9c74cfdcf8a3fbccc84d920b3d84","size":3912,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/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,"_cnpmcore_publish_time":"2024-06-10T20:57:58.183Z","publish_time":1718053078183,"_source_registry_name":"default","_cnpm_publish_time":1718053078183},"2.2.0":{"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.0","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.0","gitHead":"03c03958dc4b50ed5ab680510aa2335b972e86cf","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":{"shasum":"26adc45e983037557b537b66abc51235be9bdbf0","size":3857,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.2.0.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.0_1716676004811_0.19726167927161908"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-25T22:26:44.968Z","publish_time":1716676004968,"_source_registry_name":"default","_cnpm_publish_time":1716676004968},"2.1.3":{"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.1.3","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":"^3.0.0","typescript":"^5.1.6"},"_id":"tiny-colors@2.1.3","gitHead":"48e6ec3bee8c4be8e57b0467d7d182a52f84a32d","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":{"shasum":"a6208f7998a74affcbf6fa3e4a2f1365df67a81b","size":3836,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.1.3.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.1.3_1712272882214_0.4670085387786411"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-04T23:21:22.359Z","publish_time":1712272882359,"_source_registry_name":"default","_cnpm_publish_time":1712272882359},"2.1.2":{"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.1.2","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":"^3.0.0","typescript":"^5.1.6"},"gitHead":"36eea73789fc90f915789a38aa7f7cbd6b2f8136","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_id":"tiny-colors@2.1.2","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"9eda73b0e7043f5fec45d5938bf041d2c97722fe","size":3649,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.1.2.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.1.2_1692961894196_0.10090126514123932"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-25T11:11:34.467Z","publish_time":1692961894467,"_source_registry_name":"default","_cnpm_publish_time":1692961894467},"2.1.1":{"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.1.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":"^3.0.0","typescript":"^5.1.6"},"gitHead":"e5f6cf3021ca4a9028b06295e0f4c5c4bbefda45","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_id":"tiny-colors@2.1.1","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"9b524a929c2db05d76ddaed6cd9a247b5416a6d9","size":3641,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.1.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.1.1_1692961315797_0.6238220666243177"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-25T11:01:55.970Z","publish_time":1692961315970,"_source_registry_name":"default","_cnpm_publish_time":1692961315970},"2.1.0":{"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.1.0","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":"^3.0.0","typescript":"^5.1.6"},"gitHead":"8f876c442dc8a1769f992a4149d843a368baad96","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_id":"tiny-colors@2.1.0","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"db4a58b21af3d35a620f6fd222860913112b1392","size":3613,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.1.0.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.1.0_1691839930764_0.7249129813579962"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-12T11:32:10.934Z","publish_time":1691839930934,"_source_registry_name":"default","_cnpm_publish_time":1691839930934},"2.0.2":{"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.0.2","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":"^2.1.0","typescript":"^4.9.5"},"gitHead":"a72b87cc0a1f7e5e2b76f9db9ee1aee7f1294935","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_id":"tiny-colors@2.0.2","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"5370ba8ee6f4312e3b27f80f694ca9cbda51f0e1","size":3131,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.0.2.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.0.2_1676084586409_0.14045854171266736"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-11T03:03:06.625Z","publish_time":1676084586625,"_cnpm_publish_time":1676084586625},"2.0.1":{"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.0.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":"npm run clean && npm run compile && npm run test"},"keywords":["tiny","cli","terminal","colors"],"devDependencies":{"tsex":"^1.0.4","typescript":"^4.6.3"},"gitHead":"b85589acb8538946c50c8dddfa29b5a467e97007","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_id":"tiny-colors@2.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"1cd5650c33499db933ce60da21732bd919aefcab","size":3107,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.0.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.0.1_1649118917374_0.5571703746950054"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-05T02:40:20.755Z","publish_time":1649118917746,"_cnpm_publish_time":1649118917746},"2.0.0":{"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.0.0","type":"module","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":"npm run clean && npm run compile && npm run test"},"keywords":["tiny","cli","terminal","colors"],"devDependencies":{"tsex":"^1.0.4","typescript":"^4.6.3"},"gitHead":"bc5ae355436f274abb539809c84253d1c86bc8da","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_id":"tiny-colors@2.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"8d7bfba72549bd260f0c85f264f248f544168e7b","size":2500,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-2.0.0.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.0.0_1649115666609_0.2597165506815615"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-05T02:40:20.656Z","publish_time":1649115666794,"_cnpm_publish_time":1649115666794},"1.0.0":{"name":"tiny-colors","description":"A tiny library providing the basic ANSI colors for the terminal.","version":"1.0.0","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --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":"npm run clean && npm run compile && npm run test"},"bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-colors.git"},"keywords":["tiny","cli","terminal","colors"],"devDependencies":{"@types/node":"^17.0.23","rimraf":"^3.0.2","typescript":"^4.6.3","typescript-transform-export-interop":"^1.0.4"},"gitHead":"c7fe3133148cc66573266e330d970738e24438a6","homepage":"https://github.com/fabiospampinato/tiny-colors#readme","_id":"tiny-colors@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"2fa1bba52ba1cbf2b0d20e001ece4850d02ec05c","size":4212,"noattachment":false,"key":"/tiny-colors/-/tiny-colors-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-colors/download/tiny-colors-1.0.0.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_1.0.0_1649020452650_0.5263945859222441"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-03T21:14:17.008Z","publish_time":1649020452788,"_cnpm_publish_time":1649020452788}},"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","_attachments":{},"homepage":"https://github.com/fabiospampinato/tiny-colors#readme","bugs":{"url":"https://github.com/fabiospampinato/tiny-colors/issues"},"license":"MIT"}