{"_id":"is-mp3@1.1.4","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"dist":{"shasum":"38fe20600744d02ba58d23c6588a45034841a252","tarball":"http://registry-npm.ywwl.com/is-mp3/download/is-mp3-1.1.4.tgz","integrity":"sha512-qufa5BQ1Q3qYPVvf1m+P+fEs1FZeZRYbqFUy1b5WCz+pr2Qnn4bFLTRUYxhhVn0Iwke2odiWG4pPEZmeqmHEXg==","fileCount":4,"unpackedSize":2938,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICWFDbWZBjyfnQsCqEngjsKBOM8Oy5hh17f/oNlcRo4fAiAJGOu/UnC2t6vHs5v2R9KKVb7umiSdfURdKXx+UtNvMw=="}],"size":1729,"noattachment":false,"key":"/is-mp3/-/is-mp3-1.1.4.tgz"},"name":"is-mp3","author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"engines":{"node":">=4"},"gitHead":"90cf2fea657329ec21fd85ef41cd3a15c5864ffd","license":"MIT","scripts":{"test":"mocha --exit test.js","browser":"browserify -s $npm_package_name -o browser.js ."},"version":"1.1.4","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com","approver":{"name":"hemanth","email":"hemanth.hm@gmail.com"}},"homepage":"https://github.com/hemanth/is-mp3#readme","keywords":["mp3","type","detect","check","is","binary","buffer","uint8array"],"repository":{"url":"git+https://github.com/hemanth/is-mp3.git","type":"git"},"_npmVersion":"11.19.0","description":"Check if a Buffer/Uint8Array is a MP3 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-mp3_1.1.4_1791245343038_0.321391643674658"},"_hasShrinkwrap":false,"readme":"# is-mp3 [![Build Status](https://travis-ci.org/hemanth/is-mp3.svg?branch=master)](https://travis-ci.org/hemanth/is-mp3)\n\n> Check if a Buffer/Uint8Array is a MP3 file.\n\n## Install\n\n```sh\n$ npm install --save is-mp3\n```\n\n```sh\n$ bower install --save is-mp3\n```\n\n```sh\n$ component install hemanth/is-mp3\n```\n\n\n## Usage\n\n##### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isMp3 = require('is-mp3');\nvar buffer = readChunk('meow.mp3', 0, 3);\n\nisMp3(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'meow.mp3');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisMp3(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isMp3(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":1791245343120,"_cnpm_publish_time":1791245343120,"dist-tags":{"latest":"1.1.4"}}