{"_id":"is-flac","_rev":"51457","name":"is-flac","description":"Check if a Buffer/Uint8Array is a FLAC file.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"time":{"modified":"2021-06-03T10:15:42.000Z","created":"2014-04-27T10:15:52.663Z","1.1.2":"2016-04-23T05:48:59.463Z","1.1.0":"2015-01-14T05:39:58.879Z","1.0.0":"2014-12-14T02:57:51.381Z","0.3.0":"2014-12-14T02:49:16.794Z","0.2.0":"2014-11-22T13:02:58.103Z","0.1.2":"2014-04-30T12:29:54.625Z","0.1.1":"2014-04-29T13:42:10.934Z","0.1.0":"2014-04-27T10:15:52.663Z"},"users":{},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"repository":{"type":"git","url":"git+https://github.com/hemanth/is-flac.git"},"versions":{"1.1.2":{"name":"is-flac","version":"1.1.2","description":"Check if a Buffer/Uint8Array is a FLAC file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hemanth/is-flac.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":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^8.1.0","mocha":"*","read-chunk":"^2.0.0"},"gitHead":"c265012b4d4f89e178fe17edc1b93dc68daa7c74","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac#readme","_id":"is-flac@1.1.2","_shasum":"c4c5918fa211e51b7a6e9a7cc751809eae8c002c","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.10","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"dist":{"shasum":"c4c5918fa211e51b7a6e9a7cc751809eae8c002c","size":2374,"noattachment":false,"key":"/is-flac/-/is-flac-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-1.1.2.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-flac-1.1.2.tgz_1461390538934_0.03779662260785699"},"directories":{},"publish_time":1461390539463,"_cnpm_publish_time":1461390539463,"_hasShrinkwrap":false},"1.1.0":{"name":"is-flac","version":"1.1.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":"^8.1.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"69451bfa778344588e7a5266b57af04b6ea39b02","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac","_id":"is-flac@1.1.0","_shasum":"1325bb6cef6c3cc60eed1d82882cf9e512001bf7","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"1325bb6cef6c3cc60eed1d82882cf9e512001bf7","size":1037,"noattachment":false,"key":"/is-flac/-/is-flac-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-1.1.0.tgz"},"directories":{},"publish_time":1421213998879,"_cnpm_publish_time":1421213998879,"_hasShrinkwrap":false},"1.0.0":{"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","size":1113,"noattachment":false,"key":"/is-flac/-/is-flac-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-1.0.0.tgz"},"directories":{},"publish_time":1418525871381,"_cnpm_publish_time":1418525871381,"_hasShrinkwrap":false},"0.3.0":{"name":"is-flac","version":"0.3.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":"251fd25397331db68df0f6d84330513321c6bf68","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac","_id":"is-flac@0.3.0","_shasum":"c7988f6227bf2f0d1c7317806b4b4e802ed47cea","_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":"c7988f6227bf2f0d1c7317806b4b4e802ed47cea","size":1735,"noattachment":false,"key":"/is-flac/-/is-flac-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-0.3.0.tgz"},"directories":{},"publish_time":1418525356794,"_cnpm_publish_time":1418525356794,"_hasShrinkwrap":false},"0.2.0":{"name":"is-flac","version":"0.2.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":"^6.3.2","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"a59c8e3c386449ff32955194c58ac90ba7387834","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac","_id":"is-flac@0.2.0","_shasum":"de8cc46b7442ac14688944873f7a7bf115252d23","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"de8cc46b7442ac14688944873f7a7bf115252d23","size":1041,"noattachment":false,"key":"/is-flac/-/is-flac-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-0.2.0.tgz"},"directories":{},"publish_time":1416661378103,"_cnpm_publish_time":1416661378103,"_hasShrinkwrap":false},"0.1.2":{"name":"is-flac","version":"0.1.2","description":"Check if a Buffer/Uint8Array is a FLAC file.","license":"MIT","repository":{"type":"git","url":"git://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":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac","_id":"is-flac@0.1.2","_shasum":"c561211e02f1235aa83b285b1c17ac55bebf8dba","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"c561211e02f1235aa83b285b1c17ac55bebf8dba","size":1051,"noattachment":false,"key":"/is-flac/-/is-flac-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-0.1.2.tgz"},"directories":{},"publish_time":1398860994625,"_cnpm_publish_time":1398860994625,"_hasShrinkwrap":false},"0.1.1":{"name":"is-flac","version":"0.1.1","description":"Check if a Buffer/Uint8Array is a FLAC file.","license":"MIT","repository":{"type":"git","url":"git://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":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac","_id":"is-flac@0.1.1","_shasum":"ed685582021ad582bdcd8322f25ff74f8cdce755","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"ed685582021ad582bdcd8322f25ff74f8cdce755","size":1044,"noattachment":false,"key":"/is-flac/-/is-flac-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-0.1.1.tgz"},"directories":{},"publish_time":1398778930934,"_cnpm_publish_time":1398778930934,"_hasShrinkwrap":false},"0.1.0":{"name":"is-flac","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a FLAC file.","license":"MIT","repository":{"type":"git","url":"git://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":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"homepage":"https://github.com/hemanth/is-flac","_id":"is-flac@0.1.0","dist":{"shasum":"cb6b7c541c4e0a874f7ffa367467ebe7db6d3d81","size":1043,"noattachment":false,"key":"/is-flac/-/is-flac-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-flac/download/is-flac-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":1398593752663,"_cnpm_publish_time":1398593752663,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/hemanth/is-flac#readme","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"license":"MIT"}