node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

is-zip

Check if a Buffer/Uint8Array is a ZIP file

is-zip

Check if a Buffer/Uint8Array is a ZIP file

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

MIT License © Kevin Mårtensson