{"id":15293430,"url":"https://github.com/normal-coder/linguist-colors","last_synced_at":"2026-02-20T17:31:01.480Z","repository":{"id":257804051,"uuid":"858878901","full_name":"normal-coder/linguist-colors","owner":"normal-coder","description":"Generate colors for programming language or file, base on GitHub/linguist","archived":false,"fork":false,"pushed_at":"2024-10-01T06:26:57.000Z","size":316,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T07:33:41.965Z","etag":null,"topics":["colors","file-extension","github","linguist","linguist-color","programming-color","programming-language"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/linguist-colors","language":"JavaScript","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/normal-coder.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}},"created_at":"2024-09-17T17:32:17.000Z","updated_at":"2024-10-01T06:26:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"432554f7-8eff-4e86-bbe3-646b16bf4554","html_url":"https://github.com/normal-coder/linguist-colors","commit_stats":null,"previous_names":["normal-coder/linguist-colors"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/normal-coder/linguist-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normal-coder%2Flinguist-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normal-coder%2Flinguist-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normal-coder%2Flinguist-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normal-coder%2Flinguist-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/normal-coder","download_url":"https://codeload.github.com/normal-coder/linguist-colors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normal-coder%2Flinguist-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29658366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","file-extension","github","linguist","linguist-color","programming-color","programming-language"],"created_at":"2024-09-30T16:48:44.883Z","updated_at":"2026-02-20T17:31:01.409Z","avatar_url":"https://github.com/normal-coder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linguist-colors\n\nGenerate colors for programming language or file,base on [gitHub-linguist](https://github.com/github-linguist/linguist).\n\n## Install\n\nYou can install it in the following way:\n\nvia npm:\n\n```shell\nnpm i linguist-colors\n```\n\nvia yarn:\n\n```shell\nyarn add linguist-colors\n```\n\nvia pnpm:\n\n```shell\npnpm install linguist-colors\n```\n\n## Usage\n\n```typescript\nimport linguistColors from \"linguist-colors\"\n\n// Specify programming language to get color\nlinguistColors.getLangColor(\"TypeScript\", 'HEX')\n// Specify file extension to get color\nlinguistColors.getExtensionColor('.ts', 'HEX')\n```\n\n## Thanks\n\nThe project is refactored and improved based on [LorenzoBloedow/programming-colors](https://github.com/LorenzoBloedow/programming-colors).\n\n## LICENSE\n\nCode released under the [MIT License](./LICENSE). Docs released under Creative Commons.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormal-coder%2Flinguist-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormal-coder%2Flinguist-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormal-coder%2Flinguist-colors/lists"}