JSPM

iso-639-3-to-1

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1124
    • Score
      100M100P100Q115286F
    • License ISC

    Convert iso 639-3 to 639-1 language code

    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 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