is-pdf

Check if a Buffer/Uint8Array is a 7ZIP file

  • is-pdf

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-pdf
601.0.010 years ago10 years agoMinified + gzip package size for is-pdf in KB

Readme

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