Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

is-pdf

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-pdf - npm Package Compare versions

Comparing version
0.1.0
to
1.0.0
+4
-5
package.json
{
"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"
}
}

@@ -7,22 +7,13 @@ # is-pdf [![Build Status](https://travis-ci.org/kevva/is-pdf.svg?branch=master)](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 @@ ```