node package manager

is-zip

is-zip Build Status

Check if a Buffer/Uint8Array is a ZIP file

Install

$ npm install --save is-zip

Usage

var isZip = require('is-zip');
var read = require('fs').readFileSync;
 
isZip(read('foo.zip'));
// => true 

License

MIT License © Kevin Mårtensson