https://github.com/featurist/browser-pdf-support
detect PDF support in the browser
https://github.com/featurist/browser-pdf-support
Last synced: 6 months ago
JSON representation
detect PDF support in the browser
- Host: GitHub
- URL: https://github.com/featurist/browser-pdf-support
- Owner: featurist
- Created: 2014-08-15T09:21:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T14:30:08.000Z (about 7 years ago)
- Last Synced: 2024-08-10T07:27:53.068Z (9 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 7
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Can I has PDF?
A tiny NPM module that determines if the browser can render PDFs, either with built-in support like Safari, Chrome and Firefox, or with Adobe Acrobat in Internet Explorer.
The module is expected to be used with [the amazing browserify](https://github.com/substack/node-browserify).
var pdfSupport = require('browser-pdf-support');
if (pdfSupport()) {
console.log('we has PDF!');
} else {
console.log('oh dear, you'll need to download acrobat or a real browser...');
}## We're Hiring!
Featurist provides full stack, feature driven development teams. Want to join us? Check out [our career opportunities](https://www.featurist.co.uk/careers/).