{"_id":"is-ogg@1.1.3","bugs":{"url":"https://github.com/hemanth/is-ogg/issues"},"dist":{"shasum":"64b360dffcf97c49a23cddf095cb971053d184a7","tarball":"http://registry-npm.ywwl.com/is-ogg/download/is-ogg-1.1.3.tgz","integrity":"sha512-xrAzy3FyDhEybbfFbHEgSNdLt6IMnGnvHqJAFyt7cU0riuVnt/p+ve6Z5UjC6u7hTeCz4jzihdXxgTuA0aO9/w==","fileCount":4,"unpackedSize":2952,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICpV6cNztPBKfq2lEzAV5bU8efbHt3bEQrlF7vBljUwkAiAXUTY1MsBQGH4/bmwj3y7PWTFxZKHfobX59rGioewNKw=="}],"size":1738,"noattachment":false,"key":"/is-ogg/-/is-ogg-1.1.3.tgz"},"name":"is-ogg","author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"engines":{"node":">=4"},"gitHead":"a0b6b0e1aecf3f9ef38ac274d496b5f5878d5e2a","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-ogg#readme","keywords":["ogg","ogv","oga","type","detect","check","is","binary","buffer","uint8array"],"repository":{"url":"git+https://github.com/hemanth/is-ogg.git","type":"git"},"_npmVersion":"11.19.0","description":"Check if a Buffer/Uint8Array is an OGG 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-ogg_1.1.3_1791245343225_0.6983455529654488"},"_hasShrinkwrap":false,"readme":"# is-ogg [![Build Status](https://travis-ci.org/hemanth/is-ogg.svg?branch=master)](https://travis-ci.org/hemanth/is-ogg)\n\n> Check if a Buffer/Uint8Array is an [OGG](http://en.wikipedia.org/wiki/Ogg) file.\n\n## Install\n\n```sh\n$ npm install --save is-ogg\n```\n\n```sh\n$ bower install --save is-ogg\n```\n\n```sh\n$ component install hemanth/is-ogg\n```\n\n\n## Usage\n\n##### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isOgg = require('is-ogg');\nvar buffer = readChunk('meow.ogg', 0, 4);\n\nisOgg(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'meow.ogg');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisOgg(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isOgg(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":1791245343304,"_cnpm_publish_time":1791245343304,"dist-tags":{"latest":"1.1.3"}}