is-m4a
Check if a Buffer/Uint8Array is a m4a file.
Install
$ npm install --save is-m4a
$ bower install --save is-m4a
$ component install hemanth/is-m4a
Usage
Node.js
var readChunk = ; // npm install read-chunkvar isM4a = ;var buffer = ; ;//=> true
Browser
var xhr = ;xhr;xhrresponseType = 'arraybuffer'; xhr { ; //=> true}; xhr;
API
isM4a(buffer)
Accepts a Buffer (Node.js) or Uint8Array.
It only needs the first 4 bytes.
License
MIT © Hemanth.HM