{"_id":"is-ogg","_rev":"50653","name":"is-ogg","description":"Check if a Buffer/Uint8Array is an OGG file.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"time":{"modified":"2021-06-03T10:15:29.000Z","created":"2014-04-25T13:52:21.401Z","1.1.2":"2016-04-23T05:48:01.071Z","1.1.0":"2015-01-14T05:39:01.783Z","1.0.0":"2014-12-14T02:57:58.839Z","0.3.0":"2014-12-14T02:51:34.700Z","0.2.0":"2014-11-22T13:04:08.888Z","0.1.2":"2014-04-30T12:29:21.760Z","0.1.1":"2014-04-29T13:43:36.589Z","0.1.0":"2014-04-25T13:52:21.401Z"},"users":{},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"repository":{"type":"git","url":"git+https://github.com/hemanth/is-ogg.git"},"versions":{"1.1.2":{"name":"is-ogg","version":"1.1.2","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hemanth/is-ogg.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":["ogg","ogv","oga","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^8.1.0","mocha":"*","read-chunk":"^2.0.0"},"gitHead":"3823ed4b233d41e09fcd912a96ab589e34fdb8ef","bugs":{"url":"https://github.com/hemanth/is-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg#readme","_id":"is-ogg@1.1.2","_shasum":"956a0e023ce7b5c484fac0e2ff427834f6a76493","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.10","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"dist":{"shasum":"956a0e023ce7b5c484fac0e2ff427834f6a76493","size":2385,"noattachment":false,"key":"/is-ogg/-/is-ogg-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-1.1.2.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-ogg-1.1.2.tgz_1461390480575_0.46679119137115777"},"directories":{},"publish_time":1461390481071,"_cnpm_publish_time":1461390481071,"_hasShrinkwrap":false},"1.1.0":{"name":"is-ogg","version":"1.1.0","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-ogg"},"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":["ogg","ogv","oga","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^8.1.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"5d5134a26eada07a79410cc977a15632c601d0d8","bugs":{"url":"https://github.com/hemanth/is-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg","_id":"is-ogg@1.1.0","_shasum":"b236a5089a0f368e5d32befc3f7c6175f191a297","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"b236a5089a0f368e5d32befc3f7c6175f191a297","size":1057,"noattachment":false,"key":"/is-ogg/-/is-ogg-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-1.1.0.tgz"},"directories":{},"publish_time":1421213941783,"_cnpm_publish_time":1421213941783,"_hasShrinkwrap":false},"1.0.0":{"name":"is-ogg","version":"1.0.0","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-ogg"},"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":["ogg","ogv","oga","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"f8504fa57ca9bd2e53797f04e08b2021f4897346","bugs":{"url":"https://github.com/hemanth/is-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg","_id":"is-ogg@1.0.0","_shasum":"7ab65a01436a82a3c10e7970c564aa6fd4b839ce","_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":"7ab65a01436a82a3c10e7970c564aa6fd4b839ce","size":976,"noattachment":false,"key":"/is-ogg/-/is-ogg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-1.0.0.tgz"},"directories":{},"publish_time":1418525878839,"_cnpm_publish_time":1418525878839,"_hasShrinkwrap":false},"0.3.0":{"name":"is-ogg","version":"0.3.0","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-ogg"},"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":["ogg","ogv","oga","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"50ada44971679a46d9e1507500fcc30dff475cd7","bugs":{"url":"https://github.com/hemanth/is-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg","_id":"is-ogg@0.3.0","_shasum":"1aedb85efed3a6180c829cc2eead9809e0e5b1b5","_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":"1aedb85efed3a6180c829cc2eead9809e0e5b1b5","size":1749,"noattachment":false,"key":"/is-ogg/-/is-ogg-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-0.3.0.tgz"},"directories":{},"publish_time":1418525494700,"_cnpm_publish_time":1418525494700,"_hasShrinkwrap":false},"0.2.0":{"name":"is-ogg","version":"0.2.0","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-ogg"},"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":["ogg","ogv","oga","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^6.3.2","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"09ff2ec9ddcf4da07ab914ef83bb2b84de9892fe","bugs":{"url":"https://github.com/hemanth/is-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg","_id":"is-ogg@0.2.0","_shasum":"4a295375f7422544b6bbdf76d53d20b5322f76dd","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"4a295375f7422544b6bbdf76d53d20b5322f76dd","size":1059,"noattachment":false,"key":"/is-ogg/-/is-ogg-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-0.2.0.tgz"},"directories":{},"publish_time":1416661448888,"_cnpm_publish_time":1416661448888,"_hasShrinkwrap":false},"0.1.2":{"name":"is-ogg","version":"0.1.2","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-ogg"},"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":["ogg","ogv","oga","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-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg","_id":"is-ogg@0.1.2","_shasum":"194473a7940b3e3f5778b1d23ceb64e60d6019b0","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"194473a7940b3e3f5778b1d23ceb64e60d6019b0","size":1068,"noattachment":false,"key":"/is-ogg/-/is-ogg-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-0.1.2.tgz"},"directories":{},"publish_time":1398860961760,"_cnpm_publish_time":1398860961760,"_hasShrinkwrap":false},"0.1.1":{"name":"is-ogg","version":"0.1.1","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-ogg"},"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":["ogg","ogv","oga","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-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg","_id":"is-ogg@0.1.1","_shasum":"fb59d353125724ee7557916214a0f2835d21836c","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"fb59d353125724ee7557916214a0f2835d21836c","size":1063,"noattachment":false,"key":"/is-ogg/-/is-ogg-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-0.1.1.tgz"},"directories":{},"publish_time":1398779016589,"_cnpm_publish_time":1398779016589,"_hasShrinkwrap":false},"0.1.0":{"name":"is-ogg","version":"0.1.0","description":"Check if a Buffer/Uint8Array is an OGG file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-ogg"},"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":["ogg","ogv","oga","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-ogg/issues"},"homepage":"https://github.com/hemanth/is-ogg","_id":"is-ogg@0.1.0","dist":{"shasum":"b02d0ffbe8c26000e10c7f1e633527db04010802","size":609,"noattachment":false,"key":"/is-ogg/-/is-ogg-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-ogg/download/is-ogg-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":1398433941401,"_cnpm_publish_time":1398433941401,"_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","_attachments":{},"homepage":"https://github.com/hemanth/is-ogg#readme","bugs":{"url":"https://github.com/hemanth/is-ogg/issues"},"license":"MIT"}