ISO639 Codes
ISO639 Codes for JavaScript
Installation
Module available through the npm registry. It can be installed using the npm
or yarn
command line tools.
npm install iso639-codes --save
yarn add iso639-codes
Example
const iso = require('iso639-codes')
iso['Portuguese'].name
iso['Portuguese'].names
iso['Portuguese']['iso639-2']
iso['Portuguese']['iso639-1']
iso['Balinese']['iso639-2']
iso['Balinese']['iso639-1']
iso['Chichewa'].name
iso['Chichewa'].names
Documentation
iso639
List of Languages
iso639[language]
Get ISO information
- name (String)
- names (Array)
- iso639-2 (String)
- iso639-1 (String || null)
Source
NOTE: Source is www.loc.gov/standards/iso639-2/php/English_list.php
Tests
To run the test suite, first install the dependencies, then run test
:
npm test
yarn test
Dependencies
None
Contributors
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.
License
MIT © Tiago Danin