# detect-writing-scripts

> Detect the writing script given an array of codepoints.

Latest version **1.0.3** (published 2023-02-02) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install detect-writing-scripts
pnpm add detect-writing-scripts
yarn add detect-writing-scripts
bun add detect-writing-scripts
```

## 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 | 1.0.3 |
| Published | 2023-02-02 |
| First published | 2023-02-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 24.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bram Stein |
| Maintainers | bramstein |

## Links

- npm: https://www.npmjs.com/package/detect-writing-scripts
- npm.io page: https://npm.io/package/detect-writing-scripts

## Recent versions

- 1.0.3 (latest) — 2023-02-02
- 1.0.2 — 2023-02-02
- 1.0.1 — 2023-02-02
- 1.0.0 — 2023-02-02

## README

# Writing script detection

This library detects the writing script given an array of Unicode codepoints. You can use this, for example, to detect writing script support for fonts.

Usage:

```
import detect from 'detect-writing-script';

const scripts = detect([65, 67, 68, 86, 89, ...], 0.25);

// {
//   'Latin': {
//     count: 182,
//     total: 1293
//   },
//   ...
// }
```

The first value given to the `detect` function is an array with numerical codepoints and the second parameter is a threshold (0.0 - 1.0) that can be used to exclude scripts with very low counts.

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