{"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","tarball":"http://registry-npm.ywwl.com/is-mp3/download/is-mp3-1.1.3.tgz","integrity":"sha512-s9jAf4qmxd8MCOE0BRLzs9uZMM+hWWkIHBkPFOLU5NPT0ooCOaINRQ8ePBKWsfh1jOZr7Y7zFXpWxtIKaJhn4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrdjfbceNgNyDiWEK9WSl5uR/qxOXM/P1FiD9lWZU6+QIgL0KQFC7ekYbsnrV8BMBsds3SGWs+TbLaaxjBjhPOoGc="}],"size":2387,"noattachment":false,"key":"/is-mp3/-/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":{},"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":1493695800912,"_cnpm_publish_time":1493695800912,"dist-tags":{"latest":"1.1.4"}}