{"name":"is-m4a","version":"0.1.2","description":"Check if a Buffer/Uint8Array is a m4a file.","license":"MIT","repository":{"type":"git","url":"git://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":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"homepage":"https://github.com/hemanth/is-m4a","_id":"is-m4a@0.1.2","_shasum":"2f3512cad57f67881936a231bd53a82af658af5a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"2f3512cad57f67881936a231bd53a82af658af5a","tarball":"http://registry-npm.ywwl.com/is-m4a/download/is-m4a-0.1.2.tgz","integrity":"sha512-Nz17Vgkfmyw1jDqH3dqs+Cb1biUP1ab6+EMfDi6EvllawYcQAmPukZVGWxZIVuruC/urFQ0kYLSm0m2MY+hHbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiWWCNNNKopxZY4Uwia85exPDtb4mA95YlHqRtnCRVCQIhAIOUoNkwqRikivWfM4/Fr0TPkBfQgD/+jQ0SgAMq0mnw"}],"size":640,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.1.2.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":1399484676828,"_cnpm_publish_time":1399484676828,"dist-tags":{"latest":"1.1.1"}}