Package Exports
- iso-639-3-to-1
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iso-639-3-to-1) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
iso-639-3-to-1 
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'