JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 63573
  • Score
    100M100P100Q255026F
  • License MIT

ISO-639-3 codes in an accessible format

Package Exports

  • iso-639-3

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

ISO 639-3 codes in an accessible format, all of them.

Installation

npm:

npm install iso-639-3

Usage

var iso6393 = require('iso-639-3');

console.log(iso6393.slice(1820, 1825));

Yields:

[ { name: 'Ende',
    type: 'living',
    scope: 'individual',
    iso6393: 'end',
    iso6392B: null,
    iso6392T: null,
    iso6391: null },
  { name: 'Forest Enets',
    type: 'living',
    scope: 'individual',
    iso6393: 'enf',
    iso6392B: null,
    iso6392T: null,
    iso6391: null },
  { name: 'English',
    type: 'living',
    scope: 'individual',
    iso6393: 'eng',
    iso6392B: 'eng',
    iso6392T: 'eng',
    iso6391: 'en' },
  { name: 'Tundra Enets',
    type: 'living',
    scope: 'individual',
    iso6393: 'enh',
    iso6392B: null,
    iso6392T: null,
    iso6391: null },
  { name: 'Enlhet',
    type: 'living',
    scope: 'individual',
    iso6393: 'enl',
    iso6392B: null,
    iso6392T: null,
    iso6391: null } ]

API

iso6393

Array.<Language> — List of languages.

Language

Object:

name

Language name (string).

type

Language type (Type).

type

Language scope (Scope)

iso6392B

Bibliographic ISO 639-2 code, if available (string?).

iso6392T

Terminological ISO 639-2 code, if available (string?).

iso6391

ISO 639-1 code, if available (string?).

Type

string, one of the following:

'living'

Still spoken languages (example: nhi for Zacatlán-Ahuacatlán-Tepetzintla Nahuatl).

'historical'

Distinct from any modern languages that are descended from it (example: ofs for Old Frisian).

'extinct'

Language that went extinct in recent time (example: rbp for Barababaraba).

'ancient'

Language that went extinct in ancient times (example: got for Gothic).

'constructed'

Artificial languages, but not programming languages (example: epo for Esperanto).

'special'

Non-language codes (example: und for Undetermined).

Scope

string, one of the following:

'special'

Non-language codes (example: und for Undetermined).

'macrolanguage'

One-to-many grouping of languages, because older ISO 639s included them (example: ara for Arabic).

'language'

Normal, single language (example: eng for English).

License

MIT © Titus Wormer