Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-zip

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-zip - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

9

package.json
{
"name": "is-zip",
"version": "0.1.0",
"version": "1.0.0",
"description": "Check if a Buffer/Uint8Array is a ZIP 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"
},

@@ -33,5 +32,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-zip [![Build Status](https://travis-ci.org/kevva/is-zip.svg?branch=master)](https://travis-ci.org/kevva/is-zip)

```bash
```sh
$ npm install --save is-zip
```
```bash
$ component install kevva/is-zip
```
```bash
$ bower install --save is-zip
```
## Usage
```js
var fs = require('fs');
var isZip = require('is-zip');
var buf = fs.readFileSync('foo.zip');
var read = require('fs').readFileSync;
isZip(buf);
isZip(read('foo.zip'));
// => true

@@ -29,0 +20,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc