# font-stats

> Takes a directory of fonts and generates a JSON file with detailed font statistics

Latest version **1.0.1** (published 2017-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install font-stats
pnpm add font-stats
yarn add font-stats
bun add font-stats
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-12-26 |
| First published | 2017-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Zach Leatherman |
| Maintainers | zachleat |
| Keywords | font, web-fonts |

## Links

- npm: https://www.npmjs.com/package/font-stats
- Repository: https://github.com/zachleat/font-stats
- Homepage: https://github.com/zachleat/font-stats#readme
- Issues: https://github.com/zachleat/font-stats/issues
- npm.io page: https://npm.io/package/font-stats

## Dependencies (8)

- [pify](https://npm.io/package/pify.md) ^3.0.0
- [globby](https://npm.io/package/globby.md) ^7.1.1
- [better-log](https://npm.io/package/better-log.md) ^1.3.3
- [lodash.uniq](https://npm.io/package/lodash.uniq.md) ^4.5.0
- [opentype.js](https://npm.io/package/opentype.js.md) ^0.7.3
- [characterset](https://npm.io/package/characterset.md) ^1.3.0
- [lodash.union](https://npm.io/package/lodash.union.md) ^4.6.0
- [lodash.concat](https://npm.io/package/lodash.concat.md) ^4.5.0

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-12-26
- 1.0.0 — 2017-12-25

## README

# font-stats

Generates useful information about a font from a font file.

For example:

* Find all the ligatures contained within a font file (as groups of code points or strings).
* Generate a unicode-range that directly matches all the code points in a font file.
* Find all of the available OpenType features (`font-feature-settings` values) in a font file.

## Installation

Available on npm as [`font-stats`](https://www.npmjs.com/package/font-stats):

```
npm install font-stats
```

## Usage

```
let opensans = new FontStats("./fonts/OpenSans-Regular.ttf");
console.log( opensans.stats );
```

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