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