Natural Preference for Minification
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

is-pdf

1.0.0 • Public • Published

is-pdf Build Status

Check if a Buffer/Uint8Array is a PDF file

Install

$ npm install --save is-pdf

Usage

var isPdf = require('is-pdf');
var read = require('fs').readFileSync;
 
isPdf(read('foo.pdf'));
// => true

License

MIT License © Kevin Mårtensson

install

npm i is-pdf

Downloadsweekly downloads

13

version

1.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar