{"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","tarball":"http://registry-npm.ywwl.com/is-mp3/download/is-mp3-1.0.0.tgz","integrity":"sha512-9m/Nr6QH6m5dIY4CgPAhT8435vcJt2BUNtdSGRfmoWYfMzacq6ZIwe//rynk38fzlUpx7RBRo7eT1yipecnafQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmiRgcBPZSiRy+5WK0ddxuoJyZGfRWjyf3AlsRZ7ha3AiBViN31WCz9e83PpkZEiqM5zrufZM8djC+jGHz0BmVhdQ=="}],"size":1097,"noattachment":false,"key":"/is-mp3/-/is-mp3-1.0.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":1418525876985,"_cnpm_publish_time":1418525876985,"dist-tags":{"latest":"1.1.4"}}