{"name":"is-m4a","version":"0.3.0","description":"Check if a Buffer/Uint8Array is a m4a file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-m4a"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["m4a","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"fa8309250ec7f4e9f8534b786d82f2a938cb5602","bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"homepage":"https://github.com/hemanth/is-m4a","_id":"is-m4a@0.3.0","_shasum":"51fa9ef4970f11a10a0bc4196aea29e707878d56","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.11.13","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"51fa9ef4970f11a10a0bc4196aea29e707878d56","tarball":"http://registry-npm.ywwl.com/is-m4a/download/is-m4a-0.3.0.tgz","integrity":"sha512-qDF2dvr9gDbaloXA1cffP7G/4BNO3aGsUEKeid7l4ViLMQKsJDadV7WRvVANxd+PzWVZhsuUpK0E+wRM2tZHkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJ0tEZxaDmb7eHvcCMDuL3FCTv9qPZUwmxY261iKiqTgIgbRX4/V3DUee9hWf4TlWb46i0wTfCu5UTL4aysTzHonY="}],"size":1763,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.3.0.tgz"},"directories":{},"readme":"# is-m4a [![Build Status](https://travis-ci.org/hemanth/is-m4a.svg?branch=master)](https://travis-ci.org/hemanth/is-m4a)\n\n> Check if a Buffer/Uint8Array is a m4a file.\n\n## Install\n\n```sh\n$ npm install --save is-m4a\n```\n\n```sh\n$ bower install --save is-m4a\n```\n\n```sh\n$ component install hemanth/is-m4a\n```\n\n\n## Usage\n\n##### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isM4a = require('is-m4a');\nvar buffer = readChunk('meow.m4a', 0, 8);\n\nisM4a(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'meow.m4a');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisM4a(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isM4a(buffer)\n\nAccepts a Buffer (Node.js) or Uint8Array.\n\nIt only needs the first 4 bytes.\n\n\n## License\n\nMIT © [Hemanth.HM](http://h3manth.com)\n","publish_time":1418525434026,"_cnpm_publish_time":1418525434026,"dist-tags":{"latest":"1.1.1"}}