# is-otf

> Check if a String/Buffer/ArrayBuffer is OTF

Latest version **0.1.2** (published 2016-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-otf
pnpm add is-otf
yarn add is-otf
bun add is-otf
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-05-05 |
| First published | 2015-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | junmer |
| Maintainers | junmer |
| Keywords | font, OpenType, OTF, type, detect, check, is, string, str, buffer |

## Links

- npm: https://www.npmjs.com/package/is-otf
- Repository: https://github.com/junmer/is-otf
- Homepage: https://github.com/junmer/is-otf#readme
- Issues: https://github.com/junmer/is-otf/issues
- npm.io page: https://npm.io/package/is-otf

## Dependencies (1)

- [b3b](https://npm.io/package/b3b.md) 0.0.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2016-05-05
- 0.1.1 — 2015-02-12
- 0.1.0 — 2015-02-04

## README

# is-otf [![Build Status](https://travis-ci.org/junmer/is-otf.svg?branch=master)](https://travis-ci.org/junmer/is-otf)

> Check if a String/Buffer/ArrayBuffer is [OTF](http://www.microsoft.com/typography/otspec/)


## Install

```sh
$ npm install --save is-otf
```

## Usage

```js
var fs = require('fs');
isOtf(fs.readFileSync('FontAwesome.otf'));
//=> true
```

## Thx

- [ynakajima/ttf.js](https://github.com/ynakajima/ttf.js)

## Test

```sh
$ npm test
```

> test file from [Font-Awesome](https://github.com/FortAwesome/Font-Awesome)

## License

MIT © [junmer](https://github.com/junmer/)

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