# is-eot

> Check if a Buffer/Uint8Array is EOT

Latest version **1.0.0** (published 2015-02-05) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-02-05 |
| First published | 2015-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | junmer |
| Maintainers | junmer |
| Keywords | font, font-face, sfnt, eot, type, detect, check, is, binary, buffer, uint8array |

## Links

- npm: https://www.npmjs.com/package/is-eot
- Repository: https://github.com/junmer/is-eot
- Issues: https://github.com/junmer/is-eot/issues
- npm.io page: https://npm.io/package/is-eot

## 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

- 1.0.0 (latest) — 2015-02-05

## README

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

> Check if a Buffer/Uint8Array is a [EOT](http://www.w3.org/Submission/EOT/#FileFormat) 

## Install

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


## Usage

##### Node.js

```js
var readChunk = require('read-chunk'); // npm install read-chunk
var isEot = require('is-eot');
var buffer = readChunk.sync('font.eot', 0, 36);

isEot(buffer);
//=> true
```

##### Browser

```js
var xhr = new XMLHttpRequest();
xhr.open('GET', 'font.eot');
xhr.responseType = 'arraybuffer';

xhr.onload = function () {
	isEot(new Uint8Array(this.response));
	//=> true
};

xhr.send();
```


## API

### isEot(buffer)

Accepts a Buffer (Node.js) or Uint8Array.

## 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-eot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
