JSPM

is-pdf

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 750
  • Score
    100M100P100Q90215F
  • License MIT

Check if a Buffer/Uint8Array is a 7ZIP file

Package Exports

  • is-pdf

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-pdf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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