{"_id":"webgl-context","_rev":"29-6d259e14c63ff712d91ff251b4368f66","name":"webgl-context","description":"gets a WebGLRenderingContext","dist-tags":{"latest":"2.2.0"},"versions":{"1.0.0":{"name":"webgl-context","version":"1.0.0","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"tape test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"_id":"webgl-context@1.0.0","dist":{"shasum":"6fc01a82678ef905c0e5b2c7832a325fa3ec54cd","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-1.0.0.tgz","integrity":"sha512-qlzVzGj1MI7ixnOJXfgX6zgilngRH1us6ePjQaJnrMGY3c4eCS+9iY6rXG8cWKHBT7OVi6rRx4mzIID8FLnnSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHHM3u5D1uRWtc/xMrNN5fSUZ5R6g/rfDLtlvCCSdNedAiEA+K65MqJnC6Wj8fV/6cUWSY2sWWhb4wLJingElzw175o="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{}},"1.1.0":{"name":"webgl-context","version":"1.1.0","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"tape test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"_id":"webgl-context@1.1.0","dist":{"shasum":"f5f03f336a0740c7a48c9667b1eaf01d4deedcc2","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-1.1.0.tgz","integrity":"sha512-DvpX19gjfoWkectVtJY3sqq/4PjK67nKUjF1ae/6vR0A9OQmEEg5IfvQvpstxIN2YpG/G/+fZCJDFdRWfHoFpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1Bh0rWZbIuA2EANjaxL0L4PAuqXgoWvncXEGH+m00IQIgDDO5aUImCkdY+H2N9oEgLmGjvV9bkowxKuml7RRuNm8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{}},"1.2.0":{"name":"webgl-context","version":"1.2.0","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"tape test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"_id":"webgl-context@1.2.0","dist":{"shasum":"48c3af6001fe4feba0d5a6b5db570fe27b012f86","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-1.2.0.tgz","integrity":"sha512-f6IkqmhUa+EcRqE7tJVWnKrSEslWEABVEpSYR4GEjcZH1aGLZjnaYa1B6p11T4UfhrEJIt8ISOUwZ+/WQIi3ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC71WfMUo/bh4rAgDQ11hwTa8pp5bikhOHt6wBlrPQbQIhAOsMleSR2zfRvfnN0H725P9jOrQ7tWbDbBSLZAaymRyJ"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{}},"1.2.1":{"name":"webgl-context","version":"1.2.1","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"tape test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"_id":"webgl-context@1.2.1","dist":{"shasum":"8ab965ed1f006a32b86741f8becd0ded32ad526c","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-1.2.1.tgz","integrity":"sha512-G55x+w3oOClnR0SHREVmv3djkR1SUh/QyAKgEv6sTFzSdpoKrOb0Nrc5ldSxRZvmIz4U8vfTuSmXEs5qEleuaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZYti9VtnAHFMFjxmHiiiMj0paI8uguSDCP+RhG1wdAQIgORDQA/6d3zmus68zx8vAXWZ1u1EUzH2rglG1qiHg3c0="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{}},"2.0.0":{"name":"webgl-context","version":"2.0.0","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"browserify":"^8.0.2","faucet":"0.0.1","tape":"^3.0.3","testling":"^1.7.1"},"scripts":{"test":"browserify test.js | testling -x open"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"gitHead":"421608aa31ac18d0d153a81073a2a5338e4d760b","_id":"webgl-context@2.0.0","_shasum":"3c432963237b97220170447a8ffb2d929ee0369a","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"3c432963237b97220170447a8ffb2d929ee0369a","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-2.0.0.tgz","integrity":"sha512-LNWJ6kTzwV+Nakm6UEss256LO0Abk7vvOf25dgx7wH8yyZCCiDvwPeQi53fFs0A2qRCU2rUAVZb+1/RKkZHifQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3G5xAH4UF8U6iY3yW+ig4irdxsFnMIIZxApwD+ogCQgIhAN3RKn9sc5Df/mnzRDfWGJbJz128rTZ/+04gfgIWx+G8"}]},"directories":{}},"2.1.0":{"name":"webgl-context","version":"2.1.0","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"browserify":"^8.0.2","faucet":"0.0.1","smokestack":"^3.1.0","tap-closer":"^1.0.0","tape":"^3.0.3"},"scripts":{"test":"browserify test.js | tap-closer | smokestack | faucet","test-node":"node test-node.js | faucet"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"gitHead":"7b3496bcc57419258005f9c9662a49529325f5e0","_id":"webgl-context@2.1.0","_shasum":"a29fd089c9063cc02ef3716e72995c3387587271","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"a29fd089c9063cc02ef3716e72995c3387587271","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-2.1.0.tgz","integrity":"sha512-7BN3cM07GVBeo2xihu4DAZkGYqz43ur9/FwZSEg/UOXbg5eR4WNZDB9c00IvqLNOxrZ0lmUAHaTUXq2++V9ALw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7Fx3zw00eLTiwfpaG7qenPhjt+W7QJnYZT6JW+a4xnAiBjilzB7VaPcE0bU67wbW1rBb3Q0XDhWHjlE932D0IJGA=="}]},"directories":{}},"2.1.1":{"name":"webgl-context","version":"2.1.1","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"browserify":"^8.0.2","faucet":"0.0.1","smokestack":"^3.1.0","tap-closer":"^1.0.0","tape":"^3.0.3"},"scripts":{"test":"npm run test-browser && npm run test-node","test-browser":"browserify test/test.js | tap-closer | smokestack | faucet","test-node":"node test/test-node.js | faucet"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"gitHead":"082920a21311903af95a75a09ab70567a7d6714f","_id":"webgl-context@2.1.1","_shasum":"b5e808f90df0849f1b3c1954ab1a61102d0a183a","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"b5e808f90df0849f1b3c1954ab1a61102d0a183a","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-2.1.1.tgz","integrity":"sha512-ZTmlut3o8HZaRUXwkfPBwMjnFG8HtjUlcCzEPE7us3K1XyRpi5uvOQq2WMh6feuOgSpHvnQJiMR1AW/RiX2AnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6oYV+4JqWOt0pJ8mz3XwkMQXGnuEqB69tIug0LqXTSQIgU8GBuA+nMDVkOTEO/PY7px/QNEY8vRDYyVrmuYGs+rg="}]},"directories":{}},"2.1.2":{"name":"webgl-context","version":"2.1.2","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"browserify":"^8.0.2","faucet":"0.0.1","smokestack":"^3.1.0","tap-closer":"^1.0.0","tape":"^3.0.3"},"scripts":{"test":"npm run test-browser && npm run test-node","test-browser":"browserify test/test.js | tap-closer | smokestack | faucet","test-node":"node test/test-node.js | faucet"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"gitHead":"ce97109282f9388b12e22d5ca47c779ab0377ff1","_id":"webgl-context@2.1.2","_shasum":"4e8dc3dc78b33a05b63852e7283a6662b4bc102d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"4e8dc3dc78b33a05b63852e7283a6662b4bc102d","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-2.1.2.tgz","integrity":"sha512-U7atd2arrPjbnfoSnClBxo8g8PErW7mJLMRLHPnsQfw7sMCSqRQHSaFJmP4/Xn9pIjoMPwyvnob6YGrz6V+A/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE+aGJViSlIShFoNTjFO1Lc0By25wRqQdGBngxq0rKFQIgJnnOHkblpb7yNl/X3rUtq6VXrnARij6FMsLfFgtexeg="}]},"directories":{}},"2.2.0":{"name":"webgl-context","version":"2.2.0","description":"gets a WebGLRenderingContext","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"get-canvas-context":"^1.0.1"},"devDependencies":{"browserify":"^8.0.2","faucet":"0.0.1","smokestack":"^3.1.0","tape":"^3.0.3"},"scripts":{"test":"npm run test-browser && npm run test-node","test-browser":"browserify test/test.js | smokestack | faucet","test-node":"node test/test-node.js | faucet"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"homepage":"https://github.com/mattdesl/webgl-context","bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"gitHead":"ec7217556f7034b7d07baac8259bb0cf36c23c3f","_id":"webgl-context@2.2.0","_shasum":"8f37d7257cf6df1cd0a49e6a7b1b721b94cc86a0","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"8f37d7257cf6df1cd0a49e6a7b1b721b94cc86a0","tarball":"https://registry.npmjs.org/webgl-context/-/webgl-context-2.2.0.tgz","integrity":"sha512-q/fGIivtqTT7PEoF07axFIlHNk/XCPaYpq64btnepopSWvKNFkoORlQYgqDigBIuGA1ExnFd/GnSUnBNEPQY7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHmeDx6M/bguWYuM+93eQWnsws15hK0ps/0doHbz+WahAiEArGBHi4eZybFxQqV9A1i5MaE5zV0PMQ2X/IQj7wFjyvE="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{}}},"readme":"# webgl-context\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nGrabs a WebGLRenderingContext, returning null if it doesn't exist. Similar to [2d-context](https://nodei.co/npm/2d-context/).\n\n```js\n//get a webgl context, will be null if not found\nvar gl = require('webgl-context')()\n\nif (gl) {\n    document.body.appendChild(gl.canvas)\n    //do something...\n}\n```\n\nOr, with options:\n\n```js\n//or with optional settings...\nvar gl = require('webgl-context')({\n    canvas: canvas, //the canvas DOM element to use\n    width: 400, //resizes the canvas..\n    height: 200, \n    antialias: true //can specify custom attributes here\n})\n```\n\n## Usage\n\n[![NPM](https://nodei.co/npm/webgl-context.png)](https://nodei.co/npm/webgl-context/)\n\n#### `ctx = require('webgl-context')([opt])`\n\nGets a new canvas context with optional parameters:\n\n- `canvas` a canvas element to use, otherwise creates a new element\n- `width` a width to set, otherwise no change\n- `height` a height to set, otherwise no change\n- other attributes are passed to the getContext call, like `alpha` and `antialias`\n\nYou can then get a reference of the canvas element with `ctx.canvas`. \n\n## See Also\n\n- [get-canvas-context](https://www.npmjs.com/package/get-canvas-context)\n- [2d-context](https://www.npmjs.com/package/2d-context)\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/webgl-context/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-11-08T10:38:56.412Z","created":"2014-06-11T20:47:26.616Z","1.0.0":"2014-06-11T20:47:27.347Z","1.1.0":"2014-06-11T21:22:29.330Z","1.2.0":"2014-06-12T00:21:51.791Z","1.2.1":"2014-06-12T00:27:49.150Z","2.0.0":"2015-01-04T21:48:15.316Z","2.1.0":"2015-01-14T16:33:24.776Z","2.1.1":"2015-01-16T19:01:07.987Z","2.1.2":"2015-04-01T23:52:05.369Z","2.2.0":"2015-06-11T17:59:49.318Z"},"readmeFilename":"README.md","homepage":"https://github.com/mattdesl/webgl-context","keywords":["webgl","glsl","context","glcontext","gl","webglrenderingcontext","webglcontext"],"repository":{"type":"git","url":"git://github.com/mattdesl/webgl-context.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"bugs":{"url":"https://github.com/mattdesl/webgl-context/issues"},"license":"MIT","users":{"fibo":true}}