{"_id":"is-mp3","_rev":"50239","name":"is-mp3","description":"Check if a Buffer/Uint8Array is a MP3 file.","dist-tags":{"latest":"1.1.3"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"time":{"modified":"2021-06-03T10:15:23.000Z","created":"2014-04-26T01:54:00.544Z","1.1.3":"2017-05-02T03:30:00.912Z","1.1.2":"2016-04-23T05:48:29.159Z","1.1.0":"2015-01-13T15:03:32.262Z","1.0.0":"2014-12-14T02:57:56.985Z","0.3.0":"2014-12-14T02:51:04.953Z","0.2.0":"2014-11-22T13:03:51.418Z","0.1.1":"2014-04-29T13:42:41.860Z","0.1.0":"2014-04-26T01:54:00.544Z"},"users":{},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"repository":{"type":"git","url":"git+https://github.com/hemanth/is-mp3.git"},"versions":{"1.1.3":{"name":"is-mp3","version":"1.1.3","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hemanth/is-mp3.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":["mp3","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"14.0.0","mocha":"*","read-chunk":"^2.0.0"},"gitHead":"d54e0489b4fae0396bfbce070023ae21550566f6","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3#readme","_id":"is-mp3@1.1.3","_shasum":"62a1e73c20601f46cb1f1bf592504f939f0bd4c8","_from":".","_npmVersion":"4.0.3","_nodeVersion":"4.2.1","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"dist":{"shasum":"62a1e73c20601f46cb1f1bf592504f939f0bd4c8","size":2387,"noattachment":false,"key":"/is-mp3/-/is-mp3-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-1.1.3.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-mp3-1.1.3.tgz_1493695800663_0.7255766408052295"},"directories":{},"publish_time":1493695800912,"_hasShrinkwrap":false,"_cnpm_publish_time":1493695800912},"1.1.2":{"name":"is-mp3","version":"1.1.2","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hemanth/is-mp3.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":["mp3","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^8.1.0","mocha":"*","read-chunk":"^2.0.0"},"gitHead":"fb0e53105509a888d23f07c8afc3a46974b56cdf","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3#readme","_id":"is-mp3@1.1.2","_shasum":"b2a3af7251190850fb0ac02a0b8e1b1dd5e19f8b","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.10","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"dist":{"shasum":"b2a3af7251190850fb0ac02a0b8e1b1dd5e19f8b","size":2370,"noattachment":false,"key":"/is-mp3/-/is-mp3-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-1.1.2.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-mp3-1.1.2.tgz_1461390505941_0.21663657948374748"},"directories":{},"publish_time":1461390509159,"_cnpm_publish_time":1461390509159,"_hasShrinkwrap":false},"1.1.0":{"name":"is-mp3","version":"1.1.0","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-mp3"},"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":["mp3","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^8.1.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"8be203e6c2a3407a547b8d71c4ef1e10a8f3f186","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3","_id":"is-mp3@1.1.0","_shasum":"d6d13fc4e995ced8e40ad6a18984c0f27662d23b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"d6d13fc4e995ced8e40ad6a18984c0f27662d23b","size":1043,"noattachment":false,"key":"/is-mp3/-/is-mp3-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-1.1.0.tgz"},"directories":{},"publish_time":1421161412262,"_cnpm_publish_time":1421161412262,"_hasShrinkwrap":false},"1.0.0":{"name":"is-mp3","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-mp3"},"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":["mp3","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"f4614ad375ff9b0a2938638512e2c51c60052306","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3","_id":"is-mp3@1.0.0","_shasum":"56ea5ce2753798ea02e2c493a5c0d6faba681ed1","_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":"56ea5ce2753798ea02e2c493a5c0d6faba681ed1","size":1097,"noattachment":false,"key":"/is-mp3/-/is-mp3-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-1.0.0.tgz"},"directories":{},"publish_time":1418525876985,"_cnpm_publish_time":1418525876985,"_hasShrinkwrap":false},"0.3.0":{"name":"is-mp3","version":"0.3.0","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-mp3"},"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":["mp3","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"7f6d2943040068671fc449428719f509ee780c4b","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3","_id":"is-mp3@0.3.0","_shasum":"999b60f47e2fa729d57aeac2a889acf252c1fc96","_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":"999b60f47e2fa729d57aeac2a889acf252c1fc96","size":1730,"noattachment":false,"key":"/is-mp3/-/is-mp3-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-0.3.0.tgz"},"directories":{},"publish_time":1418525464953,"_cnpm_publish_time":1418525464953,"_hasShrinkwrap":false},"0.2.0":{"name":"is-mp3","version":"0.2.0","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-mp3"},"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":["mp3","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^6.3.2","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"dc585bcd7d5b1cb3e470c838174c052088165ee0","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3","_id":"is-mp3@0.2.0","_shasum":"702fb9ebad0cf845673a91ac5ac8e88a9aefcdb9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"702fb9ebad0cf845673a91ac5ac8e88a9aefcdb9","size":1043,"noattachment":false,"key":"/is-mp3/-/is-mp3-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-0.2.0.tgz"},"directories":{},"publish_time":1416661431418,"_cnpm_publish_time":1416661431418,"_hasShrinkwrap":false},"0.1.1":{"name":"is-mp3","version":"0.1.1","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-mp3"},"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":["mp3","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-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3","_id":"is-mp3@0.1.1","_shasum":"91b90d2d1e08efd9f45e42b05c6420939639ef4f","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"91b90d2d1e08efd9f45e42b05c6420939639ef4f","size":1052,"noattachment":false,"key":"/is-mp3/-/is-mp3-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-0.1.1.tgz"},"directories":{},"publish_time":1398778961860,"_cnpm_publish_time":1398778961860,"_hasShrinkwrap":false},"0.1.0":{"name":"is-mp3","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a MP3 file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-mp3"},"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":["mp3","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-mp3/issues"},"homepage":"https://github.com/hemanth/is-mp3","_id":"is-mp3@0.1.0","dist":{"shasum":"70fb0f0079b15a0c37605631030b4bc7e389d807","size":1050,"noattachment":false,"key":"/is-mp3/-/is-mp3-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-mp3/download/is-mp3-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"directories":{},"publish_time":1398477240544,"_cnpm_publish_time":1398477240544,"_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","_attachments":{},"homepage":"https://github.com/hemanth/is-mp3#readme","bugs":{"url":"https://github.com/hemanth/is-mp3/issues"},"license":"MIT"}