{"name":"is-flac","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a FLAC file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-flac"},"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":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"e488336f1148fb95d5f72a555a522040fde07ace","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac","_id":"is-flac@1.0.0","_shasum":"b26c4aea6011bfacf3bf0b554917d97981bcfe14","_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":"b26c4aea6011bfacf3bf0b554917d97981bcfe14","tarball":"http://registry-npm.ywwl.com/is-flac/download/is-flac-1.0.0.tgz","integrity":"sha512-dMLI5zni277dzX7gRnw3ZqONq68gUMauB2v0KJVQnWdZqqJqTydvj6v1lJ//WQiGPeL7eDOv/3sbJKE8b5tTlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBWpk5f8uyqUlMNhuNdA0wHKn191DXQ/+BfqjRSTe5zlAiEAi8t3jGvBg8wParSofm2JSgTQG6//YBX6FkUig4E2Z1c="}],"size":1113,"noattachment":false,"key":"/is-flac/-/is-flac-1.0.0.tgz"},"directories":{},"readme":"# is-flac [![Build Status](https://travis-ci.org/hemanth/is-flac.svg?branch=master)](https://travis-ci.org/hemanth/is-flac)\n\n> Check if a Buffer/Uint8Array is a FLAC file.\n\n## Install\n\n```sh\n$ npm install --save is-flac\n```\n\n```sh\n$ bower install --save is-flac\n```\n\n```sh\n$ component install hemanth/is-flac\n```\n\n\n## Usage\n\n##### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isFlac = require('is-flac');\nvar buffer = readChunk('meow.wav', 0, 4);\n\nisFlac(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'meow.flac');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisFlac(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isFlac(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":1418525871381,"_cnpm_publish_time":1418525871381,"dist-tags":{"latest":"1.1.3"}}