{"name":"is-m4a","version":"1.0.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":"f8e973a02542b01e4285b2e5b41f404728bde00c","bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"homepage":"https://github.com/hemanth/is-m4a","_id":"is-m4a@1.0.0","_shasum":"74412aca754e2d91d75d885db3281ddba167c091","_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":"74412aca754e2d91d75d885db3281ddba167c091","tarball":"http://registry-npm.ywwl.com/is-m4a/download/is-m4a-1.0.0.tgz","integrity":"sha512-ZrSVHn0fs7x1XFxjX76zG40ZkFtINNtZflf2Vxa3jq2SEc8j5aFvhfzyc+5U+qfaIXILzVBDj/IeCYq3woyO5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1YLooORrGUyBMHFylXcaIQErsUf0oIS0CqjYmvJrrFAiEArauAahzfEGOWt2S5hvHwlkggidjB6/R1g5zh2Buf89Q="}],"size":1100,"noattachment":false,"key":"/is-m4a/-/is-m4a-1.0.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":1418525875254,"_cnpm_publish_time":1418525875254,"dist-tags":{"latest":"1.1.1"}}