Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

iso-639-3-to-1

amitbend5.7kISC1.0.0

Convert iso 639-3 to 639-1 language code

iso, 639, 6391, language, convert, code, lang, language, codes

readme

iso-639-3-to-1 Build Status

Converting between iso-639-3 to iso-639-1 language codes. For languages without iso-639-1 which have a "macro language", It will return the "macro language" iso-639-1 code (if exists)

Installation

npm:

npm install --save iso-639-3-to-1

Usage

const convert3To1 = require('iso-639-3-to-1')
let iso639code = 'cmn';
let result = convert3To1(iso639code);
// result = 'zh'

License

MIT © Amitbend