{"_id":"is-flac","_rev":"19-a19e2a80830cab24d4a3d1024fc98f41","name":"is-flac","dist-tags":{"latest":"1.1.3"},"versions":{"0.1.0":{"name":"is-flac","version":"0.1.0","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@0.1.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"cb6b7c541c4e0a874f7ffa367467ebe7db6d3d81","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-0.1.0.tgz","integrity":"sha512-s5e5DSqbYwljmp4QqzioYCrXSuXAindqcuwnXSSIDaSxvE3qZxtre4tL9HNBv3FJAN9VssfX/gvfVBYiGrROJA==","signatures":[{"sig":"MEUCIQDWQMsV+PwqzwjuakZJEcoiBTmbeyemMoKBF4OVK5rXQAIgaN6ijAnUzEVJkuQAUWRmtZQ2DamTnvX/CX0Y6iCqygc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git://github.com/hemanth/is-flac","type":"git"},"_npmVersion":"1.4.3","description":"Check if a Buffer/Uint8Array is a FLAC file.","devDependencies":{"mocha":"*","browserify":"^3.0.0","read-chunk":"^0.1.0"},"directories":{}},"0.1.1":{"name":"is-flac","version":"0.1.1","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@0.1.1","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"ed685582021ad582bdcd8322f25ff74f8cdce755","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-0.1.1.tgz","integrity":"sha512-NE3ezyHmrc7AQfN+grkmkAEgkH0GWQ4Q2/ApBLWFPaAZDLmNhirmRrYrGiibhxSElPEzlklkFVj2uJy8C/MBVw==","signatures":[{"sig":"MEUCIBzeWxtphAMv4aFTyTnBegtWtf2sl1UovNraDyFQ9uBbAiEA13NdW8soC9zc0e+3qXBLhQkvj5M4KzbY1yJQiIYVwac=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"ed685582021ad582bdcd8322f25ff74f8cdce755","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git://github.com/hemanth/is-flac","type":"git"},"_npmVersion":"1.4.7","description":"Check if a Buffer/Uint8Array is a FLAC file.","devDependencies":{"mocha":"*","browserify":"^3.0.0","read-chunk":"^0.1.0"},"directories":{}},"0.1.2":{"name":"is-flac","version":"0.1.2","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@0.1.2","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"c561211e02f1235aa83b285b1c17ac55bebf8dba","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-0.1.2.tgz","integrity":"sha512-CeuRMKV7yAv8HmXiNDYfVA8ngtbzOeD/tAnek+cT9YC1/7Qlx614mOigD3CFj97VC5Ml0NtkgcRX8UaqR2byZA==","signatures":[{"sig":"MEQCIHTSyNJU9y0Ka51Nryeg/8afCx228KZGxFZfTbrAMM9gAiBcPdaFhmnO8pYVXwE/4sgMTX033AKCAU2J1Mhci7ib8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"c561211e02f1235aa83b285b1c17ac55bebf8dba","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git://github.com/hemanth/is-flac","type":"git"},"_npmVersion":"1.4.7","description":"Check if a Buffer/Uint8Array is a FLAC file.","devDependencies":{"mocha":"*","browserify":"^3.0.0","read-chunk":"^0.1.0"},"directories":{}},"0.2.0":{"name":"is-flac","version":"0.2.0","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@0.2.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"de8cc46b7442ac14688944873f7a7bf115252d23","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-0.2.0.tgz","integrity":"sha512-jTyouKIOUkeMj+7PC0agxxKq19dUtZWsJn/j+jchPSbl1y7SJMm7taaQcYcioaDuIZZ5TeIuguw5fE2/4upRrQ==","signatures":[{"sig":"MEUCIQCIMf8Uzr0SRbg/QCz/q+tvWxmmjTiSsaXGcBFrzoWOkwIgb6gUdC/h1PQU/ky5h51pSgp4YywbaBmQVKxYxxlEZDw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"de8cc46b7442ac14688944873f7a7bf115252d23","engines":{"node":">=0.10.0"},"gitHead":"a59c8e3c386449ff32955194c58ac90ba7387834","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-flac","type":"git"},"_npmVersion":"1.4.28","description":"Check if a Buffer/Uint8Array is a FLAC file.","devDependencies":{"mocha":"*","browserify":"^6.3.2","read-chunk":"^1.0.0"},"directories":{}},"0.3.0":{"name":"is-flac","version":"0.3.0","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@0.3.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"c7988f6227bf2f0d1c7317806b4b4e802ed47cea","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-0.3.0.tgz","integrity":"sha512-HQAS+tmV76ryOf+goPfAjy72vOnw9+VqstKnQGHVzZbfbxUvGlLDIQV1MeEMcG14XtSOPIi8cGpZvEAzrt84Hg==","signatures":[{"sig":"MEUCIC+LEg43KnHIdjE+PN+NTrEs2rUNmaATDs4eoWT3o/vOAiEA8OXTQQr4EbixukGkerq0ZqO0l/C2CWirnIIpYFgyk60=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"c7988f6227bf2f0d1c7317806b4b4e802ed47cea","engines":{"node":">=0.10.0"},"gitHead":"251fd25397331db68df0f6d84330513321c6bf68","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-flac","type":"git"},"_npmVersion":"2.1.6","description":"Check if a Buffer/Uint8Array is a FLAC file.","_nodeVersion":"0.11.13","devDependencies":{"mocha":"*","browserify":"^7.0.0","read-chunk":"^1.0.0"},"directories":{}},"1.0.0":{"name":"is-flac","version":"1.0.0","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@1.0.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"b26c4aea6011bfacf3bf0b554917d97981bcfe14","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-1.0.0.tgz","integrity":"sha512-dMLI5zni277dzX7gRnw3ZqONq68gUMauB2v0KJVQnWdZqqJqTydvj6v1lJ//WQiGPeL7eDOv/3sbJKE8b5tTlA==","signatures":[{"sig":"MEUCIBWpk5f8uyqUlMNhuNdA0wHKn191DXQ/+BfqjRSTe5zlAiEAi8t3jGvBg8wParSofm2JSgTQG6//YBX6FkUig4E2Z1c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"b26c4aea6011bfacf3bf0b554917d97981bcfe14","engines":{"node":">=0.10.0"},"gitHead":"e488336f1148fb95d5f72a555a522040fde07ace","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-flac","type":"git"},"_npmVersion":"2.1.6","description":"Check if a Buffer/Uint8Array is a FLAC file.","_nodeVersion":"0.11.13","devDependencies":{"mocha":"*","browserify":"^7.0.0","read-chunk":"^1.0.0"},"directories":{}},"1.1.0":{"name":"is-flac","version":"1.1.0","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@1.1.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"1325bb6cef6c3cc60eed1d82882cf9e512001bf7","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-1.1.0.tgz","integrity":"sha512-GN/RFxGndGIAfePFpQwq4MwlrtqBXAd95YXhlogn/ZjufTOQRZcnclfasI3/Fo/zU2NxJZjCdOOEGy/4YSP1fA==","signatures":[{"sig":"MEUCIDgre1jhInCYvvm0kzZsNrP9OaSq0XI9ZHXNnafp9KbvAiEA9Adn2i0EtoalR3Rp7gqftG6HwkY2Hvj7kx/junR95ks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"1325bb6cef6c3cc60eed1d82882cf9e512001bf7","engines":{"node":">=0.10.0"},"gitHead":"69451bfa778344588e7a5266b57af04b6ea39b02","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-flac","type":"git"},"_npmVersion":"1.4.28","description":"Check if a Buffer/Uint8Array is a FLAC file.","devDependencies":{"mocha":"*","browserify":"^8.1.0","read-chunk":"^1.0.0"},"directories":{}},"1.1.2":{"name":"is-flac","version":"1.1.2","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-flac@1.1.2","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-flac#readme","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"c4c5918fa211e51b7a6e9a7cc751809eae8c002c","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-1.1.2.tgz","integrity":"sha512-bMCyh610qy9IAHHHxqMskwTbTHipJLRdcjrNkQjlwMJgAiA5DyVkBXF545xX+n/PFdlmUtG/2wAEV4WmdiJyrQ==","signatures":[{"sig":"MEYCIQD2NOi6shQPELVZ7+B8j0lFE5NKGrKveakeA1hbElevzwIhAPRg2M8xhJ9yLNfJYW7Gfv6tWTSdPb1ymMSAeK++2Ntr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"c4c5918fa211e51b7a6e9a7cc751809eae8c002c","engines":{"node":">=4"},"gitHead":"c265012b4d4f89e178fe17edc1b93dc68daa7c74","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git+https://github.com/hemanth/is-flac.git","type":"git"},"_npmVersion":"2.14.9","description":"Check if a Buffer/Uint8Array is a FLAC file.","_nodeVersion":"0.12.10","devDependencies":{"mocha":"*","browserify":"^8.1.0","read-chunk":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/is-flac-1.1.2.tgz_1461390538934_0.03779662260785699","host":"packages-12-west.internal.npmjs.com"},"directories":{}},"1.1.3":{"_id":"is-flac@1.1.3","bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"dist":{"shasum":"929d4ce45691db7ff5efa437fbd98eacc3e0ca55","tarball":"https://registry.npmjs.org/is-flac/-/is-flac-1.1.3.tgz","integrity":"sha512-6tkSCHA0gLSL3x5kMwbrfrG6HVWn9tWnhgOccc2GjWg7WT6LoaX/2yW2NXQjuNyUwOnRuG1MTx1iGRw66q9LLA==","fileCount":4,"unpackedSize":2907,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD7CgXpGo1dl+wcL+GbBZs40UKexa5ucJ3lUwjdIkorXwIgLVb1EcAKYMqQcMrAwDEr0HKJedC2Vuxhbc8y0yzCAIo="}]},"name":"is-flac","author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"engines":{"node":">=4"},"gitHead":"3efe2925d56f35ba2813eb85572b163a1c4595c0","license":"MIT","scripts":{"test":"mocha --exit test.js","browser":"browserify -s $npm_package_name -o browser.js ."},"version":"1.1.3","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com","approver":{"name":"hemanth","email":"hemanth.hm@gmail.com"}},"homepage":"https://github.com/hemanth/is-flac#readme","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"repository":{"url":"git+https://github.com/hemanth/is-flac.git","type":"git"},"_npmVersion":"11.19.0","description":"Check if a Buffer/Uint8Array is a FLAC file.","directories":{},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_nodeVersion":"26.8.1","devDependencies":{"mocha":"^11.7.0","browserify":"^17.0.1","read-chunk":"^3.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-flac_1.1.3_1791245343801_0.5821514717423277"},"_hasShrinkwrap":false}},"time":{"created":"2014-04-27T10:15:52.663Z","modified":"2026-10-06T00:09:03.989Z","0.1.0":"2014-04-27T10:15:52.663Z","0.1.1":"2014-04-29T13:42:10.934Z","0.1.2":"2014-04-30T12:29:54.625Z","0.2.0":"2014-11-22T13:02:58.103Z","0.3.0":"2014-12-14T02:49:16.794Z","1.0.0":"2014-12-14T02:57:51.381Z","1.1.0":"2015-01-14T05:39:58.879Z","1.1.2":"2016-04-23T05:48:59.463Z","1.1.3":"2026-10-06T00:09:03.894Z"},"bugs":{"url":"https://github.com/hemanth/is-flac/issues"},"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","homepage":"https://github.com/hemanth/is-flac#readme","keywords":["flac","audio","type","detect","check","is","binary","buffer","uint8array"],"repository":{"url":"git+https://github.com/hemanth/is-flac.git","type":"git"},"description":"Check if a Buffer/Uint8Array is a FLAC file.","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"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","readmeFilename":"readme.md"}