# is-pdf

> Check if a Buffer/Uint8Array is a 7ZIP file

Latest version **1.0.0** (published 2014-08-25) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2014-08-25 |
| First published | 2014-04-24 |
| 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 | 6 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | buffer, check, detect, pdf, type, uint8array |

## Links

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

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-08-25
- 0.1.0 — 2014-04-24

## README

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

> Check if a Buffer/Uint8Array is a PDF file

## Install

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

## Usage

```js
var isPdf = require('is-pdf');
var read = require('fs').readFileSync;

isPdf(read('foo.pdf'));
// => true
```

## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Kevin Mårtensson](https://github.com/kevva)

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