{"id":22222076,"url":"https://github.com/fabiospampinato/tiny-colors","last_synced_at":"2025-07-15T19:06:30.740Z","repository":{"id":57689669,"uuid":"477467383","full_name":"fabiospampinato/tiny-colors","owner":"fabiospampinato","description":"A tiny library providing the basic ANSI colors for the terminal.","archived":false,"fork":false,"pushed_at":"2025-01-12T00:10:15.000Z","size":21,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T20:16:33.512Z","etag":null,"topics":["cli","colors","terminal","tiny"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiospampinato.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2022-04-03T21:14:21.000Z","updated_at":"2025-01-12T00:10:18.000Z","dependencies_parsed_at":"2024-06-02T18:26:40.957Z","dependency_job_id":"4906d1ec-d0d7-44bc-b21b-8da49c8961db","html_url":"https://github.com/fabiospampinato/tiny-colors","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"29bd4ad5b86b7210a0d5a0b9453ee69e113ea6ea"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/fabiospampinato/tiny-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/tiny-colors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ftiny-colors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265452820,"owners_count":23768019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","colors","terminal","tiny"],"created_at":"2024-12-02T23:16:48.902Z","updated_at":"2025-07-15T19:06:30.731Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# Tiny Colors\n\nA tiny library providing the basic ANSI colors for the terminal.\n\n## Install\n\n```sh\nnpm install 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 ); // =\u003e true/false\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Ftiny-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Ftiny-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Ftiny-colors/lists"}