{"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","tarball":"http://registry-npm.ywwl.com/is-mp3/download/is-mp3-1.1.0.tgz","integrity":"sha512-XNNEhp8njWVmt6mk9b2L6deVvYBxZuUYmB+XVU60JFKjqyAPG6bnouoPnFn3UPED7Cl1eRvCl65PZg7V2aMQmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHx5uw7niXJVzEB+k6WmfDqxRPRCg7dT8oCjcv53jEYyAiBQriZ6cngIRzqQuCAM6fncZ9UpkyIYxnGWsyJOklBkPA=="}],"size":1043,"noattachment":false,"key":"/is-mp3/-/is-mp3-1.1.0.tgz"},"directories":{},"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":1421161412262,"_cnpm_publish_time":1421161412262,"dist-tags":{"latest":"1.1.4"}}