is-7zip

Check if a Buffer/Uint8Array is a 7ZIP file

is-7zip

Check if a Buffer/Uint8Array is a 7ZIP file

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

MIT License © Kevin Mårtensson