{"_id":"is-m4a@1.1.1","bugs":{"url":"https://github.com/hemanth/is-m4a/issues"},"dist":{"shasum":"9108f08591625d470d93e83792232eea0ab4f505","tarball":"http://registry-npm.ywwl.com/is-m4a/download/is-m4a-1.1.1.tgz","integrity":"sha512-Avv6n972chuHNXbB32W5zB4DIRi/JiZMjySToKHTfAYmK4wOYrLFIJ98J9F2IYClamtU0ytm4lngVYqb46P1Sg==","fileCount":4,"unpackedSize":2994,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAo+VF7Av1SudN/gEknra2AKzYX6yJAfqr+oSq2lO1JeAiEAlhaetefbGZDrZpga6TzyCGhwjhIcX7L4N1E2uIlQ0gs="}],"size":1741,"noattachment":false,"key":"/is-m4a/-/is-m4a-1.1.1.tgz"},"name":"is-m4a","author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"engines":{"node":">=4"},"gitHead":"fa2bfaffc19286e9ef6805c9bf77011f831dd3ad","license":"MIT","scripts":{"test":"mocha --exit test.js","browser":"browserify -s $npm_package_name -o browser.js ."},"version":"1.1.1","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com","approver":{"name":"hemanth","email":"hemanth.hm@gmail.com"}},"homepage":"https://github.com/hemanth/is-m4a#readme","keywords":["m4a","audio","type","detect","check","is","binary","buffer","uint8array"],"repository":{"url":"git+https://github.com/hemanth/is-m4a.git","type":"git"},"_npmVersion":"11.19.0","description":"Check if a Buffer/Uint8Array is a m4a file.","directories":{},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_nodeVersion":"26.8.1","devDependencies":{"mocha":"^11.7.0","browserify":"^17.0.1","read-chunk":"^3.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-m4a_1.1.1_1791245257072_0.2148343792089662"},"_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","publish_time":1791245257153,"_cnpm_publish_time":1791245257153,"dist-tags":{"latest":"1.1.1"}}