{"id":15413478,"url":"https://github.com/wooorm/iso-639-2","last_synced_at":"2025-04-19T11:56:08.672Z","repository":{"id":21321711,"uuid":"24638352","full_name":"wooorm/iso-639-2","owner":"wooorm","description":"Info on ISO 639-2","archived":false,"fork":false,"pushed_at":"2023-11-01T11:43:42.000Z","size":173,"stargazers_count":27,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T21:39:55.062Z","etag":null,"topics":["code","iso","language","name"],"latest_commit_sha":null,"homepage":"","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/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","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":"wooorm"}},"created_at":"2014-09-30T13:09:44.000Z","updated_at":"2025-04-02T17:08:11.000Z","dependencies_parsed_at":"2023-01-13T21:24:17.696Z","dependency_job_id":"11936fa9-411e-4eb8-89ca-65c198aa3797","html_url":"https://github.com/wooorm/iso-639-2","commit_stats":{"total_commits":103,"total_committers":3,"mean_commits":"34.333333333333336","dds":"0.029126213592232997","last_synced_commit":"ad1abde92fe175560d4c7b0e627d93c77d3161fb"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fiso-639-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fiso-639-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fiso-639-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fiso-639-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/iso-639-2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249690061,"owners_count":21311307,"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":["code","iso","language","name"],"created_at":"2024-10-01T16:57:16.659Z","updated_at":"2025-04-19T11:56:08.612Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"readme":"# iso-639-2\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nInfo on ISO 639-2.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`iso6392`](#iso6392)\n    *   [`iso6392BTo1`](#iso6392bto1)\n    *   [`iso6392BTo2T`](#iso6392bto2t)\n    *   [`iso6392TTo1`](#iso6392tto1)\n    *   [`iso6392TTo2B`](#iso6392tto2b)\n    *   [`Language`](#language)\n*   [Data](#data)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package contains info on [ISO 639-2][source].\nISO 639-2 is the alpha-3 code in “Codes for the representation of names of\nlanguages – Part 2”.\n\n## When should I use this?\n\nYou can use this package any time you have to deal with languages or ISO 639-2\nin particular.\nBut [ISO 639-3][iso-639-3] might be better.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install iso-639-2\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {iso6392} from 'https://esm.sh/iso-639-2@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {iso6392} from 'https://esm.sh/iso-639-2@3?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {iso6392} from 'iso-639-2'\n\niso6392.slice(120, 150)\n```\n\nYields:\n\n```js\n[\n  {name: 'Egyptian (Ancient)', iso6392B: 'egy'},\n  {name: 'Ekajuk', iso6392B: 'eka'},\n  {name: 'Elamite', iso6392B: 'elx'},\n  {name: 'English', iso6392B: 'eng', iso6391: 'en'},\n  {name: 'English, Middle (1100-1500)', iso6392B: 'enm'},\n  {name: 'Esperanto', iso6392B: 'epo', iso6391: 'eo'},\n  {name: 'Estonian', iso6392B: 'est', iso6391: 'et'},\n  {name: 'Ewe', iso6392B: 'ewe', iso6391: 'ee'},\n  {name: 'Ewondo', iso6392B: 'ewo'},\n  {name: 'Fang', iso6392B: 'fan'},\n  {name: 'Faroese', iso6392B: 'fao', iso6391: 'fo'},\n  {name: 'Fanti', iso6392B: 'fat'},\n  {name: 'Fijian', iso6392B: 'fij', iso6391: 'fj'},\n  {name: 'Filipino; Pilipino', iso6392B: 'fil'},\n  {name: 'Finnish', iso6392B: 'fin', iso6391: 'fi'},\n  {name: 'Finno-Ugrian languages', iso6392B: 'fiu'},\n  {name: 'Fon', iso6392B: 'fon'},\n  {name: 'French', iso6392B: 'fre', iso6392T: 'fra', iso6391: 'fr'},\n  {name: 'French, Middle (ca.1400-1600)', iso6392B: 'frm'},\n  {name: 'French, Old (842-ca.1400)', iso6392B: 'fro'},\n  {name: 'Northern Frisian', iso6392B: 'frr'},\n  {name: 'Eastern Frisian', iso6392B: 'frs'},\n  {name: 'Western Frisian', iso6392B: 'fry', iso6391: 'fy'},\n  {name: 'Fulah', iso6392B: 'ful', iso6391: 'ff'},\n  {name: 'Friulian', iso6392B: 'fur'},\n  {name: 'Ga', iso6392B: 'gaa'},\n  {name: 'Gayo', iso6392B: 'gay'},\n  {name: 'Gbaya', iso6392B: 'gba'},\n  {name: 'Germanic languages', iso6392B: 'gem'},\n  {name: 'Georgian', iso6392B: 'geo', iso6392T: 'kat', iso6391: 'ka'}\n]\n```\n\n## API\n\nThis package exports the identifiers\n[`iso6392`][api-iso-639-2],\n[`iso6392BTo1`][api-iso-639-2b-to-1],\n[`iso6392BTo2T`][api-iso-639-2b-to-2t],\n[`iso6392TTo1`][api-iso-639-2t-to-1], and\n[`iso6392TTo2B`][api-iso-639-2t-to-2b].\nThere is no default export.\n\n### `iso6392`\n\nList of languages (`Array\u003cLanguage\u003e`).\n\n### `iso6392BTo1`\n\nISO 639-2 Bibliographic (`dut`) to ISO 639-1 (`nl`) (`Record\u003cstring, string\u003e`).\n\n### `iso6392BTo2T`\n\nISO 639-2 Bibliographic (`dut`) to ISO 639-2 Terminologic (`nld`)\n(`Record\u003cstring, string\u003e`)\nMissing when the bibliographic and terminologic codes are the same.\n\n### `iso6392TTo1`\n\nISO 639-2 Terminologic (`nld`) to ISO 639-1 (`nl`) (`Record\u003cstring, string\u003e`).\nNot all language in 639-2 were available in 639-1.\n\n### `iso6392TTo2B`\n\nISO 639-2 Terminologic (`nld`) to ISO 639-2 Bibliographic (`dut`)\n(`Record\u003cstring, string\u003e`).\nMissing when the bibliographic and terminologic codes are the same.\n\n### `Language`\n\nOne language (TypeScript type).\n\n###### Fields\n\n*   `name` (`string`)\n    — language name\n*   `iso6392B` (`string`)\n    — bibliographic ISO 639-2 code\n*   `iso6392T` (`string | undefined`)\n    — terminologic ISO 639-2 code (if different than `iso6392B`)\n*   `iso6391` (`string | undefined`)\n    — ISO 639-1 code (if available)\n\n## Data\n\nThe data is crawled from [`www.loc.gov`][source].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports an additional type `Language`.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 16+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`bcp-47`](https://github.com/wooorm/bcp-47)\n    — parse and serialize BCP 47 language tags\n*   [`bcp-47-match`](https://github.com/wooorm/bcp-47-match)\n    — match BCP 47 language tags with language ranges per RFC 4647\n*   [`bcp-47-normalize`](https://github.com/wooorm/bcp-47-normalize)\n    — normalize, canonicalize, and format BCP 47 tags\n*   [`iso-3166`](https://github.com/wooorm/iso-3166)\n    — ISO 3166 codes\n*   [`iso-639-3`](https://github.com/wooorm/iso-639-3)\n    — ISO 639-3 codes\n*   [`iso-15924`](https://github.com/wooorm/iso-15924)\n    — ISO 15924 codes\n*   [`un-m49`](https://github.com/wooorm/un-m49)\n    — UN M49 codes\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definition --\u003e\n\n[build-badge]: https://github.com/wooorm/iso-639-2/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/iso-639-2/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/iso-639-2.svg\n\n[coverage]: https://codecov.io/github/wooorm/iso-639-2\n\n[downloads-badge]: https://img.shields.io/npm/dm/iso-639-2.svg\n\n[downloads]: https://www.npmjs.com/package/iso-639-2\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size\u0026query=$.size.compressedSize\u0026url=https://deno.bundlejs.com/?q=iso-639-2\n\n[size]: https://bundlejs.com/?q=iso-639-2\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[source]: https://www.loc.gov/standards/iso639-2/php/code_list.php\n\n[iso-639-3]: https://github.com/wooorm/iso-639-3\n\n[api-iso-639-2]: #iso6392\n\n[api-iso-639-2b-to-1]: #iso6392bto1\n\n[api-iso-639-2b-to-2t]: #iso6392bto2t\n\n[api-iso-639-2t-to-1]: #iso6392tto1\n\n[api-iso-639-2t-to-2b]: #iso6392tto2b\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fiso-639-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fiso-639-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fiso-639-2/lists"}