{"name":"is-m4a","version":"0.2.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":"^6.3.2","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"0014f5ac08f287f760e2a6f168a6e52b55a95741","bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"homepage":"https://github.com/hemanth/is-m4a","_id":"is-m4a@0.2.0","_shasum":"55949f1977787641d60644e0949a233a47dc4938","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"55949f1977787641d60644e0949a233a47dc4938","tarball":"http://registry-npm.ywwl.com/is-m4a/download/is-m4a-0.2.0.tgz","integrity":"sha512-PLbyXBkUJE7UcmEs1CQRS+E/mYLIZkyU7BaRn3UcGJurti28qNEnrl0/qEGiOIWc5SDERlOsDUIQUQGIKyTBsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIER+RgqJjyS5YbwkYlWb126MEL28K5hPSa1C/xP1HnsiAiEA5LiFiAYnFB7dyyOrrqmqrTmOSHOgEz9sMBHYl5+bQpU="}],"size":1066,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.2.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":1416661415189,"_cnpm_publish_time":1416661415189,"dist-tags":{"latest":"1.1.1"}}