# is-ttf

> Check if a String/Buffer is TTF

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

## Install

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

## 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.2.2 |
| Published | 2016-05-05 |
| First published | 2015-01-29 |
| 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 | 2 |
| Author | junmer |
| Maintainers | junmer |
| Keywords | TTF, type, detect, check, is, string, str, buffer |

## Links

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

## 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.2.2 (latest) — 2016-05-05
- 0.2.1 — 2015-04-22
- 0.2.0 — 2015-01-29
- 0.1.1 — 2015-01-29
- 0.1.0 — 2015-01-29

## README

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

> Check if a String/Buffer is [TTF](http://en.wikipedia.org/wiki/TrueType)


## Install

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

## Usage

```js
var fs = require('fs');
isTtf(fs.readFileSync('pixel.ttf'));
//=> true
```

## API

### isTtf(source[, options])

* `source` ArrayBuffer | Buffer | String
* `options`
    * `tables` necessarily tables of ttf

## thx

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

## License

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

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