{"_id":"@ahmerhh/webgraphiclibrary-context","name":"@ahmerhh/webgraphiclibrary-context","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.5":{"name":"@ahmerhh/webgraphiclibrary-context","version":"1.0.5","description":"Get the WebGL context from a canva`s.","main":"dist/index.js","scripts":{"start":"budo example/index.js --live -- -t babelify","test":"browserify test/index.js -t babelify | tape-run | tap-spec","build":"browserify src/index.js -t babelify -s @ahmerhh/WebGraphicLibrary-context > dist/index.js","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ahmerhh/WebGraphicLibrary-context.git"},"keywords":["WebGL","context","canvas"],"author":{"name":"Ahmer","email":"ahmerhabibb@proton.me"},"license":"MIT","bugs":{"url":"https://github.com/ahmerhh/WebGraphicLibrary-context/issues"},"homepage":"https://github.com/ahmerhh/WebGraphicLibrary-context#readme","devDependencies":{"babel-preset-es2015":"^6.3.13","babelify":"^7.2.0","browserify":"^13.0.0","budo":"^8.0.3","tap-spec":"^4.1.1","tape":"^4.4.0","tape-run":"^2.1.3"},"directories":{"example":"example","test":"test"},"_id":"@ahmerhh/webgraphiclibrary-context@1.0.5","gitHead":"4d683baca143c038b14a46a9e5b413b41eb6826d","_nodeVersion":"18.15.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-WsNen/P2plggrHTs3lT3uFWVlFnwULRL8TD7PIzkvWluPAyT4CcoEF5oDC9hRMC9/IPkgsH2SSvQucipWiYn8Q==","shasum":"a63fd0f288aee447c2153cc39c8b494b715dc0d0","tarball":"https://registry.npmjs.org/@ahmerhh/webgraphiclibrary-context/-/webgraphiclibrary-context-1.0.5.tgz","fileCount":6,"unpackedSize":5118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyRsTwLFn1FH3y6yGi3PX/SE45I/gdiEOjrZANdUiG5AiBty3oaCVPMdj1a+iw9sM8hxtRUov1FfmXWtPX/+tdCdg=="}]},"_npmUser":{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"},"maintainers":[{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webgraphiclibrary-context_1.0.5_1691873055936_0.853780746155214"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-12T20:44:15.858Z","1.0.5":"2023-08-12T20:44:16.117Z","modified":"2023-08-12T20:44:16.329Z"},"maintainers":[{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"}],"description":"Get the WebGL context from a canva`s.","homepage":"https://github.com/ahmerhh/WebGraphicLibrary-context#readme","keywords":["WebGL","context","canvas"],"repository":{"type":"git","url":"git+https://github.com/ahmerhh/WebGraphicLibrary-context.git"},"author":{"name":"Ahmer","email":"ahmerhabibb@proton.me"},"bugs":{"url":"https://github.com/ahmerhh/WebGraphicLibrary-context/issues"},"license":"MIT","readme":"# Web Graphic Library Context\r\n\r\nGet the Web Graphic Library context from a canvas.\r\n\r\n## Installation\r\n\r\n```sh\r\n$ npm install --save @ahmerhh/WebGraphicLibrary-context\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nimport getGl from '@ahmerhh/WebGraphicLibrary-context';\r\n\r\nconst canvas = document.createElement('canvas');\r\nconst gl = getWebGLContext(canvas);\r\n\r\nif(gl == null) {\r\n  // WebGraphicLibrary is not supported\r\n}\r\n```\r\n\r\n## API\r\n\r\n#### `gl = getWebGLContext(canvas)`\r\n\r\nReturns the `WebGraphicLibrary` context from the `canvas`. If it fails, `gl` is `null`.\r\n\r\n## License\r\n\r\nMIT, see [LICENSE.md](https://github.com/ahmerhh/WebGraphicLibrary-context/blob/master/LICENSE.md) for more details.\r\n\r\n## Credits\r\n\r\nThanks to the amazing [stackgl](http://stack.gl/) for the inspiration.","readmeFilename":"README.md"}