is-7z
Check if a Buffer/Uint8Array is a 7Z archive.
Install
$ npm install --save is-7z
Usage
Node.js
var readChunk = ; // npm install read-chunkvar is7z = ;var buffer = readChunk; ;//=> true
Browser
var xhr = ;xhr;xhrresponseType = 'arraybuffer'; xhr { ; //=> true}; xhr;
API
is7z(buffer)
Accepts a Buffer (Node.js) or Uint8Array.
It only needs the first 6 bytes.
License
MIT © t1st3