is-iso
Check if a Buffer/Uint8Array is an ISO image.
Install
$ npm install is-iso
Usage
Node.js
var readChunk = ; // npm install read-chunkvar isIso = ;var buffer = readChunk; ;//=> true
Browser
var xhr = ;xhr;xhrresponseType = 'arraybuffer'; xhr { ; //=> true}; xhr;
API
isIso(buffer)
Accepts a Buffer (Node.js) or Uint8Array.
It only needs the first 36870 bytes.
License
MIT © undisk