# identify-filetype

> Identify the type of file

Latest version **1.0.0** (published 2016-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install identify-filetype
pnpm add identify-filetype
yarn add identify-filetype
bun add identify-filetype
```

## 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 | 2016-06-04 |
| First published | 2016-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Paul Frazee |
| Maintainers | pfraze |
| Keywords | identify, file |

## Links

- npm: https://www.npmjs.com/package/identify-filetype
- Repository: https://github.com/pfraze/identify-filetype
- Homepage: https://github.com/pfraze/identify-filetype#readme
- Issues: https://github.com/pfraze/identify-filetype/issues
- npm.io page: https://npm.io/package/identify-filetype

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-06-04

## README

# identify-filetype

Identifies the file-type of a buffer using the [magic-number signatures at the start of the file](http://en.wikipedia.org/wiki/list_of_file_signatures).

```js
var identify = require('identify-filetype')

console.log(identify(some_buffer)) // => string | false
```

**Supported types:**

jpg
png
gif
bmp
tif
tif
nif
ico
psd
rar
zip
gz
msi
iso
rtf
avi
wmv
wma
swf
flv
mid
pdf
doc
docx
mp3
svg
html

**Tested:**

tif
pdf
psd
gif
jpg
png
bmp
tif
ico
rar
docx
gz
doc
rtf
svg
html

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