README
iso-15924
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 import
ed
instead of require
d.
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 namecode
(string
) — Four-character ISO 15924 codenumeric
(string
) — Three-character ISO 15924 codepva
(string?
) — Property Value Aliasdate
(string
) — Date of addition
Related
bcp-47
— Parse and serialize BCP 47 language tagsbcp-47-match
— Match BCP 47 language tags with language ranges per RFC 4647bcp-47-normalize
— Normalize, canonicalize, and format BCP 47 tagsiso-3166
— ISO 3166 codesiso-639-3
— ISO 639-3 codesiso-639-2
— ISO 639-2 codesun-m49
— UN M49 codes