# iso-15924

> ISO 15924 codes in an accessible format

Latest version **3.2.0** (published 2023-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install iso-15924
pnpm add iso-15924
yarn add iso-15924
bun add iso-15924
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2023-11-01 |
| First published | 2015-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 33.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Titus Wormer |
| Maintainers | wooorm |
| Keywords | iso-15924, iso, 15924, list, script, codes, names, information |

## Links

- npm: https://www.npmjs.com/package/iso-15924
- Repository: https://github.com/wooorm/iso-15924
- Homepage: https://github.com/wooorm/iso-15924#readme
- Issues: https://github.com/wooorm/iso-15924/issues
- npm.io page: https://npm.io/package/iso-15924

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 3.2.0 (latest) — 2023-11-01
- 3.1.0 — 2022-04-02
- 3.0.1 — 2021-10-27
- 3.0.0 — 2021-03-08
- 2.4.0 — 2020-06-16
- 2.3.0 — 2019-10-15
- 2.2.0 — 2019-05-07
- 2.1.1 — 2019-05-07
- 2.1.0 — 2018-04-15
- 2.0.1 — 2017-07-09
- 2.0.0 — 2016-03-11
- 1.0.0 — 2015-08-09

## README

# iso-15924

[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]

[ISO 15924][iso] codes.

## Contents

*   [What is this?](#what-is-this)
*   [When should I use this?](#when-should-i-use-this)
*   [Install](#install)
*   [Use](#use)
*   [API](#api)
    *   [`iso15924`](#iso15924)
*   [Types](#types)
*   [Compatibility](#compatibility)
*   [Security](#security)
*   [Related](#related)
*   [Contribute](#contribute)
*   [License](#license)

## What is this?

This is the data of [ISO 15924][iso].

## When should I use this?

ISO 15924 represents scripts (such as Latin, Georgian).
These scripts are often seen in BCP 47 language codes: `sr-Cyrl` (`sr` is ISO
639-1 for Serbian, `Cyrl` is ISO 15924 for Cyrillic).
This package is useful when you’re working with languages.

## Install

This package is [ESM only][esm].
In Node.js (version 14.14+, 16.0+), install with [npm][]:

```sh
npm install iso-15924
```

In Deno with [`esm.sh`][esmsh]:

```js
import {iso15924} from 'https://esm.sh/iso-15924@3'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
  import {iso15924} from 'https://esm.sh/iso-15924@3?bundle'
</script>
```

## Use

```js
import {iso15924} from 'iso-15924'

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

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

Yields:

```js
[
  {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 identifier `iso15924`.
There is no default export.

### `iso15924`

List of scripts (`Array<Script>`).

###### `Script`

ISO 15924 script info (`Object`):

*   `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 (e.g., `'2016-12-05'`)

## Types

This package is fully typed with [TypeScript][].
It exports the additional type `Script`.

## Compatibility

This package is at least compatible with all maintained versions of Node.js.
As of now, that is Node.js 14.14+ and 16.0+.
It also works in Deno and modern browsers.

## Security

This package is safe.

## Related

*   [`wooorm/bcp-47`](https://github.com/wooorm/bcp-47)
    — parse and serialize BCP 47 language tags
*   [`wooorm/bcp-47-match`](https://github.com/wooorm/bcp-47-match)
    — match BCP 47 language tags with language ranges per RFC 4647
*   [`wooorm/bcp-47-normalize`](https://github.com/wooorm/bcp-47-normalize)
    — normalize, canonicalize, and format BCP 47 tags
*   [`wooorm/iso-3166`](https://github.com/wooorm/iso-3166)
    — ISO 3166 codes
*   [`wooorm/iso-639-3`](https://github.com/wooorm/iso-639-3)
    — ISO 639-3 codes
*   [`wooorm/iso-639-2`](https://github.com/wooorm/iso-639-2)
    — ISO 639-2 codes
*   [`wooorm/un-m49`](https://github.com/wooorm/un-m49)
    — UN M49 codes

## Contribute

Yes please!
See [How to Contribute to Open Source][contribute].

## License

[MIT][license] © [Titus Wormer][author]

<!-- Definition -->

[build-badge]: https://github.com/wooorm/iso-15924/workflows/main/badge.svg

[build]: https://github.com/wooorm/iso-15924/actions

[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/iso-15924.svg

[coverage]: https://codecov.io/github/wooorm/iso-15924

[downloads-badge]: https://img.shields.io/npm/dm/iso-15924.svg

[downloads]: https://www.npmjs.com/package/iso-15924

[size-badge]: https://img.shields.io/bundlephobia/minzip/iso-15924.svg

[size]: https://bundlephobia.com/result?p=iso-15924

[npm]: https://docs.npmjs.com/cli/install

[esmsh]: https://esm.sh

[license]: license

[author]: https://wooorm.com

[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

[typescript]: https://www.typescriptlang.org

[contribute]: https://opensource.guide/how-to-contribute/

[iso]: https://unicode.org/iso15924/

---
_Source: https://npm.io/package/iso-15924 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
