node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

is-7zip

is-7zip Build Status

Check if a Buffer/Uint8Array is a 7ZIP file

Install

$ npm install is-7zip

Usage

const fs = require('fs');
const is7zip = require('is-7zip');
 
is7zip(fs.readFileSync('foo.7z'));
//=> true 

License

MIT © Kevin Mårtensson