{"id":18340102,"url":"https://github.com/coding-nerfilio/color-2-console","last_synced_at":"2025-04-09T20:41:35.632Z","repository":{"id":233720554,"uuid":"787168533","full_name":"coding-nerfilio/color-2-console","owner":"coding-nerfilio","description":"Color2Console is a lightweight (2.2kb) TypeScript/JavaScript library that enables you to add color to console output easily.","archived":false,"fork":false,"pushed_at":"2024-04-17T03:27:50.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T04:17:47.071Z","etag":null,"topics":["colors","console","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/color-2-console","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coding-nerfilio.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-16T02:37:18.000Z","updated_at":"2024-04-17T03:21:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd6e0d64-601f-40f6-94be-16b6e2c6d9a2","html_url":"https://github.com/coding-nerfilio/color-2-console","commit_stats":null,"previous_names":["coding-nerfilio/color-2-console"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-nerfilio%2Fcolor-2-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-nerfilio%2Fcolor-2-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-nerfilio%2Fcolor-2-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-nerfilio%2Fcolor-2-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coding-nerfilio","download_url":"https://codeload.github.com/coding-nerfilio/color-2-console/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248109841,"owners_count":21049382,"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":["colors","console","nodejs"],"created_at":"2024-11-05T20:20:59.560Z","updated_at":"2025-04-09T20:41:35.596Z","avatar_url":"https://github.com/coding-nerfilio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color2Console\n\nColor2Console is a lightweight (7.8kb) TypeScript/JavaScript library that enables you to add color to console output easily. It provides methods to add text in different colors to a buffer and then write the buffered text to the console.\n\n## Installation\n\nYou can install Color2Console via npm:\n\n```bash\nnpm install color2console\n```\n\n## Usage\n\n```typescript\nimport Color2Console from \"color2console\";\n\n// Add colored text to the buffer\nColor2Console.T_RED(\"Hello\").T_GREEN(\"World\").WRITE_LOG();\n```\n\n## API\n\n### `T_RED(text: string): Color2Console`\n\nAdds the specified text in red color to the buffer.\n\n### `T_BLUE(text: string): Color2Console`\n\nAdds the specified text in blue color to the buffer.\n\n### `T_GREEN(text: string): Color2Console`\n\nAdds the specified text in green color to the buffer.\n\n### `T_YELLOW(text: string): Color2Console`\n\nAdds the specified text in yellow color to the buffer.\n\n### `T_MAGENTA(text: string): Color2Console`\n\nAdds the specified text in magenta color to the buffer.\n\n### `T_CYAN(text: string): Color2Console`\n\nAdds the specified text in cyan color to the buffer.\n\n### `T_WHITE(text: string): Color2Console`\n\nAdds the specified text in white color to the buffer.\n\n### `WRITE_LOG(): void`\n\nWrites the buffered text to the console.\n\n## Example\n\n```typescript\nimport Color2Console from \"color2console\";\n\nColor2Console.T_RED(\"Error: \").T_WHITE(\"Something went wrong\").WRITE_LOG();\n```\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-nerfilio%2Fcolor-2-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoding-nerfilio%2Fcolor-2-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-nerfilio%2Fcolor-2-console/lists"}