{"_id":"is-m4a","_rev":"51834","name":"is-m4a","description":"Check if a Buffer/Uint8Array is a m4a file.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"time":{"modified":"2021-06-03T10:15:50.000Z","created":"2014-04-29T16:38:32.583Z","1.0.2":"2016-04-23T05:49:28.734Z","1.1.0":"2015-01-14T05:40:59.460Z","1.0.0":"2014-12-14T02:57:55.254Z","0.3.0":"2014-12-14T02:50:34.026Z","0.2.0":"2014-11-22T13:03:35.189Z","0.1.2":"2014-05-07T17:44:36.828Z","0.1.1":"2014-04-30T12:27:34.451Z","0.1.0":"2014-04-29T16:38:32.583Z"},"users":{},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"repository":{"type":"git","url":"git+https://github.com/hemanth/is-m4a.git"},"versions":{"1.0.2":{"name":"is-m4a","version":"1.0.2","description":"Check if a Buffer/Uint8Array is a m4a file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hemanth/is-m4a.git"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=4"},"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":"^2.0.0"},"gitHead":"765bd8421c69f6b1abfab4d6377e2d545f67bcdd","bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"homepage":"https://github.com/hemanth/is-m4a#readme","_id":"is-m4a@1.0.2","_shasum":"ed31ddfa14ba48f34406eb2780074442f4a9b4a3","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.10","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"dist":{"shasum":"ed31ddfa14ba48f34406eb2780074442f4a9b4a3","size":2390,"noattachment":false,"key":"/is-m4a/-/is-m4a-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-1.0.2.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-m4a-1.0.2.tgz_1461390568229_0.998394398484379"},"directories":{},"publish_time":1461390568734,"_cnpm_publish_time":1461390568734,"_hasShrinkwrap":false},"1.1.0":{"name":"is-m4a","version":"1.1.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":"^8.1.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"56195b97e704a334539fc4600a560ba683d9c21d","bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"homepage":"https://github.com/hemanth/is-m4a","_id":"is-m4a@1.1.0","_shasum":"0f16c84b3b9fbf1fdf8c39f8846846264ddbdd3c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"0f16c84b3b9fbf1fdf8c39f8846846264ddbdd3c","size":1068,"noattachment":false,"key":"/is-m4a/-/is-m4a-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-1.1.0.tgz"},"directories":{},"publish_time":1421214059460,"_cnpm_publish_time":1421214059460,"_hasShrinkwrap":false},"1.0.0":{"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","size":1100,"noattachment":false,"key":"/is-m4a/-/is-m4a-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-1.0.0.tgz"},"directories":{},"publish_time":1418525875254,"_cnpm_publish_time":1418525875254,"_hasShrinkwrap":false},"0.3.0":{"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","size":1763,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-0.3.0.tgz"},"directories":{},"publish_time":1418525434026,"_cnpm_publish_time":1418525434026,"_hasShrinkwrap":false},"0.2.0":{"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","size":1066,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-0.2.0.tgz"},"directories":{},"publish_time":1416661415189,"_cnpm_publish_time":1416661415189,"_hasShrinkwrap":false},"0.1.2":{"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","size":640,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-0.1.2.tgz"},"directories":{},"publish_time":1399484676828,"_cnpm_publish_time":1399484676828,"_hasShrinkwrap":false},"0.1.1":{"name":"is-m4a","version":"0.1.1","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.1","_shasum":"0da73d4de8de05d704dfc6fa3272f236f66f64a6","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"0da73d4de8de05d704dfc6fa3272f236f66f64a6","size":1084,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-0.1.1.tgz"},"directories":{},"publish_time":1398860854451,"_cnpm_publish_time":1398860854451,"_hasShrinkwrap":false},"0.1.0":{"name":"is-m4a","version":"0.1.0","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.0","_shasum":"385a396baa10365b52cc591f6a2c0219cfc71752","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"385a396baa10365b52cc591f6a2c0219cfc71752","size":1082,"noattachment":false,"key":"/is-m4a/-/is-m4a-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-m4a/download/is-m4a-0.1.0.tgz"},"directories":{},"publish_time":1398789512583,"_cnpm_publish_time":1398789512583,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/hemanth/is-m4a#readme","bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"license":"MIT"}