{"id":16577035,"url":"https://github.com/nvlang/tag-to-code-lang","last_synced_at":"2026-03-12T09:47:36.289Z","repository":{"id":248021720,"uuid":"827549010","full_name":"nvlang/tag-to-code-lang","owner":"nvlang","description":"Map programming language tags to their full names","archived":false,"fork":false,"pushed_at":"2025-06-08T00:30:11.000Z","size":28102,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T05:05:53.004Z","etag":null,"topics":[],"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/nvlang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-11T21:50:49.000Z","updated_at":"2025-06-08T00:30:19.000Z","dependencies_parsed_at":"2025-03-11T07:32:19.202Z","dependency_job_id":"48807e6c-cea9-4881-b0c8-5efe4c4c3c4a","html_url":"https://github.com/nvlang/tag-to-code-lang","commit_stats":null,"previous_names":["nvlang/tag-to-code-lang"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nvlang/tag-to-code-lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvlang%2Ftag-to-code-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvlang%2Ftag-to-code-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvlang%2Ftag-to-code-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvlang%2Ftag-to-code-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvlang","download_url":"https://codeload.github.com/nvlang/tag-to-code-lang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvlang%2Ftag-to-code-lang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265024819,"owners_count":23699622,"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-10-11T22:09:40.929Z","updated_at":"2026-03-12T09:47:36.245Z","avatar_url":"https://github.com/nvlang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/nvlang/tag-to-code-lang/main/res/dark/logo.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/nvlang/tag-to-code-lang/main/res/light/logo.svg\"\u003e\n    \u003cimg alt=\"Logo\" src=\"https://raw.githubusercontent.com/nvlang/tag-to-code-lang/main/res/light/logo.svg\" width=\"90%\"\u003e\n\u003c/picture\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cdiv\u003e\n\n[\u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://img.shields.io/github/v/tag/nvlang/tag-to-code-lang?style=flat-square\u0026logo=GitHub\u0026logoColor=a3acb7\u0026label=\u0026labelColor=21262d\u0026color=21262d\"\u003e\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://img.shields.io/github/v/tag/nvlang/tag-to-code-lang?style=flat-square\u0026logo=GitHub\u0026logoColor=24292f\u0026label=\u0026labelColor=eaeef2\u0026color=eaeef2\"\u003e\u003cimg alt=\"GitHub version tag\" src=\"https://img.shields.io/github/v/tag/nvlang/tag-to-code-lang?style=flat-square\u0026logo=GitHub\u0026logoColor=24292f\u0026label=\u0026labelColor=eaeef2\u0026color=eaeef2\"\u003e\u003c/picture\u003e](https://github.com/nvlang/tag-to-code-lang)\n[\u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://img.shields.io/badge/@nvl/tag--to--code--lang-_?style=flat-square\u0026logo=npm\u0026logoColor=a3acb7\u0026labelColor=21262d\u0026color=21262d\u0026logoSize=auto)\"\u003e\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://img.shields.io/badge/@nvl/tag--to--code--lang-_?style=flat-square\u0026logo=npm\u0026logoColor=24292f\u0026labelColor=eaeef2\u0026color=eaeef2\u0026logoSize=auto)\"\u003e\u003cimg alt=\"NPM package name\" src=\"https://img.shields.io/badge/@nvl/tag--to--code--lang-_?style=flat-square\u0026logo=npm\u0026logoColor=24292f\u0026labelColor=eaeef2\u0026color=eaeef2\u0026logoSize=auto)\"\u003e\u003c/picture\u003e](https://npmjs.com/@nvl/tag-to-code-lang)\n[\u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://img.shields.io/badge/@nvl/tag--to--code--lang-_?style=flat-square\u0026labelColor=21262d\u0026color=21262d\u0026logo=jsr\u0026logoColor=a3acb7\u0026logoSize=auto\"\u003e\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://img.shields.io/badge/@nvl/tag--to--code--lang-_?style=flat-square\u0026labelColor=eaeef2\u0026color=eaeef2\u0026logo=jsr\u0026logoColor=24292f\u0026logoSize=auto\"\u003e\u003cimg alt=\"JSR package name\" src=\"https://img.shields.io/badge/@nvl/tag--to--code--lang-_?style=flat-square\u0026labelColor=eaeef2\u0026color=eaeef2\u0026logo=jsr\u0026logoColor=24292f\u0026logoSize=auto\"\u003e\u003c/picture\u003e](https://jsr.io/@nvl/tag-to-code-lang)\n[\u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://jsr.io/badges/@nvl/tag-to-code-lang/score?style=flat-square\u0026labelColor=21262d\u0026color=21262d\u0026logoColor=a3acb7\"\u003e\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://jsr.io/badges/@nvl/tag-to-code-lang/score?style=flat-square\u0026labelColor=eaeef2\u0026color=eaeef2\u0026logoColor=24292f\"\u003e\u003cimg alt=\"JSR score\" src=\"https://jsr.io/badges/@nvl/tag-to-code-lang/score?style=flat-square\u0026labelColor=eaeef2\u0026color=eaeef2\u0026logoColor=24292f\"\u003e\u003c/picture\u003e](https://jsr.io/@nvl/tag-to-code-lang)\n[\u003cpicture\u003e\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://img.shields.io/codecov/c/github/nvlang/tag-to-code-lang?style=flat-square\u0026logo=codecov\u0026label=\u0026logoColor=a3acb7\u0026labelColor=21262d\u0026color=21262d\"\u003e\u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://img.shields.io/codecov/c/github/nvlang/tag-to-code-lang?style=flat-square\u0026logo=codecov\u0026label=\u0026logoColor=24292f\u0026labelColor=eaeef2\u0026color=eaeef2\"\u003e\u003cimg alt=\"CodeCov Coverage\" src=\"https://img.shields.io/codecov/c/github/nvlang/tag-to-code-lang?style=flat-square\u0026logo=codecov\u0026label=\u0026logoColor=24292f\u0026labelColor=eaeef2\u0026color=eaeef2\"\u003e\u003c/picture\u003e](https://codecov.io/gh/nvlang/tag-to-code-lang)\n\n\u003c/div\u003e\n\u003c/div\u003e\n\n## Getting Started\n\n**Note:** This package is [ESM-only].\n\n### Installation\n\n#### Node.js (v16+)\n\n```sh\npnpm add @nvl/tag-to-code-lang # If using PNPM\nbun  add @nvl/tag-to-code-lang # If using Bun\nnpm  add @nvl/tag-to-code-lang # If using NPM\nyarn add @nvl/tag-to-code-lang # If using Yarn\n```\n\n#### Deno\n\n```ts\nimport { tagToCodeLang } from 'https://esm.sh/@nvl/tag-to-code-lang@1';\n```\n\n### Usage\n\n```ts\nimport { tagToCodeLang } from '@nvl/tag-to-code-lang';\n\nconsole.log(tagToCodeLang('js')); // JavaScript\nconsole.log(tagToCodeLang('ts')); // TypeScript\nconsole.log(tagToCodeLang('rb')); // Ruby\nconsole.log(tagToCodeLang('hs')); // Haskell\n```\n\nNote that file extensions are not recognized, as there would be many collisions:\n\n```ts\nimport { tagToCodeLang } from '@nvl/tag-to-code-lang';\n\nconsole.log(tagToCodeLang('.h')); // undefined\nconsole.log(tagToCodeLang('h')); // undefined\nconsole.log(tagToCodeLang('cpp')); // C++\nconsole.log(tagToCodeLang('c')); // C\n```\n\nIf you believe a tag which is not currently recognized _should_ be recognized,\nyou can open an issue in the\n[`github-linguist/linguist`](https://github.com/github-linguist/linguist)\nrepository asking for the tag to be added to the `aliases` property of the\nlanguage inside the\n[`languages.yml`](https://github.com/github-linguist/linguist/blob/master/lib/linguist/languages.yml)\nfile.\n\n## Acknowledgments\n\nThis project is merely an interface to data provided by the [GitHub Linguist]\nproject.\n\n## Similar work\n\n- `linguist-languages` ([NPM](https://www.npmjs.com/package/linguist-languages)\n  / [GitHub](https://github.com/ikatyang/linguist-languages)): The\n  `languages.yml` file from the GitHub Linguist project, as a JSON object. I\n  would've used this project instead of creating a separate one with a similar\n  purpose (though for a more specific use case), but I couldn't get it to work\n  due to\n  [URL encoded characters in import paths](https://github.com/ikatyang/linguist-languages/issues/278).\n\n[GitHub Linguist]: https://github.com/github-linguist/linguist\n[ESM-only]:\n    https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvlang%2Ftag-to-code-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvlang%2Ftag-to-code-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvlang%2Ftag-to-code-lang/lists"}