{"id":19177717,"url":"https://github.com/jessety/simple-log-colors","last_synced_at":"2026-06-20T19:30:18.815Z","repository":{"id":57360389,"uuid":"164060397","full_name":"jessety/simple-log-colors","owner":"jessety","description":"Extremely lightweight zero-dependency library for coloring Node terminal output","archived":false,"fork":false,"pushed_at":"2021-05-16T03:38:13.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T04:56:32.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/simple-log-colors","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/jessety.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}},"created_at":"2019-01-04T05:04:31.000Z","updated_at":"2023-03-09T02:58:07.000Z","dependencies_parsed_at":"2022-09-06T21:41:34.449Z","dependency_job_id":null,"html_url":"https://github.com/jessety/simple-log-colors","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-log-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-log-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-log-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessety%2Fsimple-log-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jessety","download_url":"https://codeload.github.com/jessety/simple-log-colors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254565,"owners_count":19772438,"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":[],"created_at":"2024-11-09T10:34:50.378Z","updated_at":"2026-06-20T19:30:18.751Z","avatar_url":"https://github.com/jessety.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-log-colors\n\nExtremely lightweight zero-dependency library for coloring Node terminal output\n\n[![build](https://github.com/jessety/simple-log-colors/workflows/ci/badge.svg)](https://github.com/jessety/simple-log-colors/actions)\n[![npm](https://img.shields.io/npm/v/simple-log-colors.svg)](https://www.npmjs.com/package/simple-log-colors)\n[![license](https://img.shields.io/github/license/jessety/simple-log-colors.svg)](https://github.com/jessety/simple-log-colors/blob/main/LICENSE)\n\n## Install\n\n```bash\nnpm install simple-log-colors\n```\n\n## Usage\n\n```javascript\n// Modules\nimport colors from 'simple-log-colors';\n\n// CommonJS\nconst colors = require('simple-log-colors');\n```\n\nTemplate strings\n\n```javascript\nconsole.log(`Hello, ${colors.blue('world')}!`);\nconsole.log(`Everything looks ${colors.cyan('better')} with a little ${colors.magenta('color')}!`);\n```\n\nConcatenation\n\n```javascript\nconsole.log(colors.redBackground('WARNING') + ' things are getting pretty ' + colors.yellow('colorful') + ' around here.');\n```\n\nFunctions\n\n```javascript\nconst { red, green, blue } = require('simple-log-colors');\n\nconsole.log(`${red('Error')} the ${green('POST')} request to the ${blue('/test')} route was not signed properly.`);\n```\n\n## Colors\n\nThe following colors are supported:\n\n- `black`\n- `red`\n- `green`\n- `yellow`\n- `blue`\n- `magenta`\n- `cyan`\n- `white`\n\nAll of these colors are also supported as background colors. For background colors, add the suffix `Background` onto a supported color.\n\n```javascript\nconsole.error(colors.redBackground('ERROR'));\n```\n\n## License\n\nMIT © Jesse Youngblood\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessety%2Fsimple-log-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjessety%2Fsimple-log-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessety%2Fsimple-log-colors/lists"}