+4
-5
| { | ||
| "name": "is-pdf", | ||
| "version": "0.1.0", | ||
| "version": "1.0.0", | ||
| "description": "Check if a Buffer/Uint8Array is a 7ZIP file", | ||
@@ -16,4 +16,3 @@ "license": "MIT", | ||
| "scripts": { | ||
| "browser": "browserify -s $npm_package_name -o browser.js .", | ||
| "test": "mocha --reporter list" | ||
| "test": "node test/test.js" | ||
| }, | ||
@@ -32,5 +31,5 @@ "files": [ | ||
| "devDependencies": { | ||
| "browserify": "^3.44.2", | ||
| "mocha": "^1.18.2" | ||
| "ava": "0.0.4", | ||
| "read-chunk": "^1.0.0" | ||
| } | ||
| } |
+3
-12
@@ -7,22 +7,13 @@ # is-pdf [](https://travis-ci.org/kevva/is-pdf) | ||
| ```bash | ||
| ```sh | ||
| $ npm install --save is-pdf | ||
| ``` | ||
| ```bash | ||
| $ component install kevva/is-pdf | ||
| ``` | ||
| ```bash | ||
| $ bower install --save is-pdf | ||
| ``` | ||
| ## Usage | ||
| ```js | ||
| var fs = require('fs'); | ||
| var isPdf = require('is-pdf'); | ||
| var buf = fs.readFileSync('foo.pdf'); | ||
| var read = require('fs').readFileSync; | ||
| isPdf(buf); | ||
| isPdf(read('foo.pdf')); | ||
| // => true | ||
@@ -29,0 +20,0 @@ ``` |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
-50%1345
-11.63%24
-27.27%