iso-15924

ISO 15924 codes in an accessible format

Usage no npm install needed!

<script type="module">
  import iso15924 from 'https://cdn.skypack.dev/iso-15924';
</script>

README

iso-15924

Build Coverage Downloads Size

ISO 15924 codes in an accessible format, all of them.

Install

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install iso-15924

Use

import {iso15924} from 'iso-15924'

console.log(iso15924.length) // => 210

console.log(iso15924.slice(0, 3))

Yields:

[
  {
    code: 'Adlm',
    name: 'Adlam',
    numeric: '166',
    pva: 'Adlam',
    date: '2016-12-05'
  },
  {
    code: 'Afak',
    name: 'Afaka',
    numeric: '439',
    date: '2010-12-21'
  },
  {
    code: 'Aghb',
    name: 'Caucasian Albanian',
    numeric: '239',
    pva: 'Caucasian_Albanian',
    date: '2014-11-15'
  }
]

API

This package exports the following identifiers: iso15924. There is no default export.

iso15924

Script[] — List of scripts.

Script

Object with the following properties:

  • name (string) — Script name
  • code (string) — Four-character ISO 15924 code
  • numeric (string) — Three-character ISO 15924 code
  • pva (string?) — Property Value Alias
  • date (string) — Date of addition

Related

License

MIT © Titus Wormer