{"_id":"webgl-mock","_rev":"14-7c0e0ca2703b1d00bb77b090d9c8404f","name":"webgl-mock","description":"A simple implementation-less interface for testing code outside of WebGL","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.3":{"name":"webgl-mock","version":"0.1.3","description":"A simple implementation-less interface for testing code outside of WebGL","author":{"name":"Kevin Birk","email":"birk.kevin@gmail.com"},"main":"src/exports.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kbirk/webgl-mock.git"},"files":["src"],"keywords":["webgl","test","mock","stub"],"dependencies":{},"devDependencies":{},"gitHead":"f7584331d34e77f344e699c68cdcbb0379ff63e9","bugs":{"url":"https://github.com/kbirk/webgl-mock/issues"},"homepage":"https://github.com/kbirk/webgl-mock#readme","_id":"webgl-mock@0.1.3","scripts":{},"_shasum":"03ce07b56c8482167caf4f676cf3c8ce45e56a6d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"kbirk","email":"birk.kevin@gmail.com"},"dist":{"shasum":"03ce07b56c8482167caf4f676cf3c8ce45e56a6d","tarball":"https://registry.npmjs.org/webgl-mock/-/webgl-mock-0.1.3.tgz","integrity":"sha512-15uVX3l+aQaL5slQANFHTfRnsN2evJ06Je5upA8haGn3dn0c81cI3FCqD430hbKViT6q701ftLNI5GSvVFPt0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXXsIILi4Eu9ZOS7kUMdiKf/WwCmG5kEK1Qdfuk+J8SAiB66jJqyj4Cp5hFkxjlrzthojDo4M3GeVVtMLASbUe/9A=="}]},"maintainers":[{"name":"kbirk","email":"birk.kevin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/webgl-mock-0.1.3.tgz_1458930756158_0.270574732683599"},"directories":{}},"0.1.4":{"name":"webgl-mock","version":"0.1.4","description":"A simple implementation-less interface for testing code outside of WebGL","author":{"name":"Kevin Birk","email":"birk.kevin@gmail.com"},"main":"src/exports.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kbirk/webgl-mock.git"},"files":["src"],"keywords":["webgl","test","mock","stub"],"dependencies":{},"devDependencies":{},"gitHead":"f66240c742bf86f2be9a877033115e13274ce078","bugs":{"url":"https://github.com/kbirk/webgl-mock/issues"},"homepage":"https://github.com/kbirk/webgl-mock#readme","_id":"webgl-mock@0.1.4","scripts":{},"_shasum":"b60448527c60f387f621f0fc0a5beeba79705d98","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"kbirk","email":"birk.kevin@gmail.com"},"dist":{"shasum":"b60448527c60f387f621f0fc0a5beeba79705d98","tarball":"https://registry.npmjs.org/webgl-mock/-/webgl-mock-0.1.4.tgz","integrity":"sha512-/TaXqjCsylXl4pKnxvGzBH+6IUWMMx/Lb9y1niiZLqOXeyY2DyrX6kczDFeFNHTAWcCgP1/hZWlDsSj09LjI7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxTkhkjhWBbWoBlBBJow1xvSMFJBaK+3rXmCku1III4AIgeB6LxZKM6/T36x/1VOKauubeHrQ+ekgyi9y7Y3Zl7Wo="}]},"maintainers":[{"name":"kbirk","email":"birk.kevin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/webgl-mock-0.1.4.tgz_1459025470868_0.6223784333560616"},"directories":{}},"0.1.5":{"name":"webgl-mock","version":"0.1.5","description":"A simple implementation-less interface for testing code outside of WebGL","author":{"name":"Kevin Birk","email":"birk.kevin@gmail.com"},"main":"src/exports.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kbirk/webgl-mock.git"},"files":["src"],"keywords":["webgl","test","mock","stub"],"dependencies":{},"devDependencies":{},"gitHead":"d38545b1e6472874168c52cbe10f7cb8359ded02","bugs":{"url":"https://github.com/kbirk/webgl-mock/issues"},"homepage":"https://github.com/kbirk/webgl-mock#readme","_id":"webgl-mock@0.1.5","scripts":{},"_shasum":"c9df7a6119565fa6fac399f75030f1717488dcdf","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"kbirk","email":"birk.kevin@gmail.com"},"dist":{"shasum":"c9df7a6119565fa6fac399f75030f1717488dcdf","tarball":"https://registry.npmjs.org/webgl-mock/-/webgl-mock-0.1.5.tgz","integrity":"sha512-FQPwwsWzisEuymSBUaPlowVfqPk5TgNXKaEzDZJnEzqt8I8x7khNyn6pAWRJ/nrKmEpHkpDI3vVEwwrTpJ+HOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHbbRTw3ppwgYH0esGvld2n7nc3NBzC7gkIoyAixoL9QIhAOwwqll5n5osE556LDtDZt5oxW5ZYOzwfKPUIsdV6z5h"}]},"maintainers":[{"name":"kbirk","email":"birk.kevin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/webgl-mock-0.1.5.tgz_1459551213648_0.6765337996184826"},"directories":{}},"0.1.6":{"name":"webgl-mock","version":"0.1.6","description":"A simple implementation-less interface for testing code outside of WebGL","author":{"name":"Kevin Birk","email":"birk.kevin@gmail.com"},"main":"src/exports.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kbirk/webgl-mock.git"},"files":["src"],"keywords":["webgl","test","mock","stub"],"dependencies":{},"devDependencies":{},"gitHead":"c7f1059e214c6dd8764d36b60629a1273174784e","bugs":{"url":"https://github.com/kbirk/webgl-mock/issues"},"homepage":"https://github.com/kbirk/webgl-mock#readme","_id":"webgl-mock@0.1.6","scripts":{},"_shasum":"36e561bd1f495846c2a4e139b187ba5f36dad768","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"kbirk","email":"birk.kevin@gmail.com"},"maintainers":[{"name":"kbirk","email":"birk.kevin@gmail.com"}],"dist":{"shasum":"36e561bd1f495846c2a4e139b187ba5f36dad768","tarball":"https://registry.npmjs.org/webgl-mock/-/webgl-mock-0.1.6.tgz","integrity":"sha512-IevXH0fPTzar/DjZI/bQCifkRkwFs2j03b4nn6ma05TKWHyGpKQFrcxXoKewdpVJsG2/XZGyC30q5G7FwsHNKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaHDgHvqjLV2ptf6h9rfn3uPlkabIiEU3FLo6y1/N6bAiEA1vKC+zuvk1OLO2f9MWuvXGv5uUhoUSal3bbMIfH7E9o="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/webgl-mock-0.1.6.tgz_1460683958706_0.9970998372882605"},"directories":{}},"0.1.7":{"name":"webgl-mock","version":"0.1.7","description":"A simple implementation-less interface for testing code outside of WebGL","author":{"name":"Kevin Birk","email":"birk.kevin@gmail.com"},"main":"src/exports.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kbirk/webgl-mock.git"},"files":["src"],"keywords":["webgl","test","mock","stub"],"dependencies":{},"devDependencies":{},"gitHead":"7f4cd5c688f50e7819b6b599c1d8bfaf92b0236a","bugs":{"url":"https://github.com/kbirk/webgl-mock/issues"},"homepage":"https://github.com/kbirk/webgl-mock#readme","_id":"webgl-mock@0.1.7","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"kbirk","email":"birk.kevin@gmail.com"},"dist":{"integrity":"sha512-7Wlrhvo2bnts5Wt53vy+OD/pJsAXC3Bj4R+qR4eInMaqAyVx3NI8ui3+pKClLy7zVoZVglkzV8PGJUXt2POINg==","shasum":"cad9d7c9789cbc7e61c20ca6026d56577921b770","tarball":"https://registry.npmjs.org/webgl-mock/-/webgl-mock-0.1.7.tgz","fileCount":9,"unpackedSize":21241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbITYrCRA9TVsSAnZWagAAQAUP/01ft5BhKitOISSx09BP\nGUgWOrdW+YGEm6JegKSqzPQWiEiKb/nRrRv+e5NR5XO4S/SPW1igGPV3mDao\nMLooTkdTgwzdBt7Jd32Y3BSpzZ+RdLmzOo8uRMLlkbAudrkNEbESjmTm3F7+\nRbAmzB0p0vF0iySnXtlwyKi8F8Ft6s4o032KuRPHp0xVrhBUnSY/FQQQ9Fqr\nWAK/2AV2IaiPndlbZr7nmMY1as/UmbyaQ+UGkkEyDdYmUGW/wDfJqGsF1zqt\nicVYuFOnWHUkiP6HHp8pnwQEYG62yVmagKVO0EyG/zd9YohAGe9+E3YYyg+P\nSigRdapijq2pxXLlCgqWDsbfOqwHnhLbx5MmaVw+GTpU2ElxgXcJXd6TfdLE\n+yzGabxdY/mk+99MdxO7NI7cpY6Sf2thAh8icEK7GgNF8rCpEiqXpx4HkIgo\nAX9ZkIXbDaF8NB1KwX6T/jUNwT5yaj3FU0rusy40Jr0mNXTWXne3cpKCGYbK\nfco07h00Nt5ElqLDuETaGtNDh2gs9bUS8MvEq3VL8BkiDCVStUc2MJ6C7fLl\nZT5TAcoeiy8BPJ0Oez0L8R1MnHtrXk8AT6w+t3nTKxLd7VpwdaqSRKR4uQNG\n2Kr6RWZ8qG+0XO37MxaWdfxd55ziktB4IdsgJJWx0FY+8Sud8yhIVxCythuL\neZb0\r\n=vuoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBeNCoN7dVPiljclmY0MVJSBNtGkb1m6u9/TodfNWDoJAiBBhC3KoozuLuyP4fY6avmJS/Bb9nC8Z8v0StlGKEbchA=="}]},"maintainers":[{"name":"kbirk","email":"birk.kevin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webgl-mock_0.1.7_1528903211447_0.5239363905493191"},"_hasShrinkwrap":false}},"readme":"# webgl-mock.js\n\n[![npm version](https://badge.fury.io/js/webgl-mock.svg)](http://badge.fury.io/js/webgl-mock) [![Dependency Status](https://david-dm.org/kbirk/webgl-mock.svg)](https://david-dm.org/kbirk/webgl-mock)\n\nA simple implementation-less interface for testing code _outside_ of WebGL.\n\n## Installation\n\nRequires [node](http://nodejs.org/).\n\n```bash\nnpm install webgl-mock\n```\n\n## Usage\n\nWrite source code using webgl.\n\n```javascript\nfunction VertexBuffer( gl, options ) {\n    options = options || {};\n    this.gl = gl;\n    this.type = ( options.type !== undefined ) ? options.type : gl.FLOAT;\n    this.mode = ( options.mode !== undefined ) ? options.mode : gl.TRIANGLES;\n    this.buffer = gl.createBuffer();\n    gl.bindBuffer( gl.ARRAY_BUFFER, this.buffer );\n    gl.bufferData( gl.ARRAY_BUFFER, options.data || options.size, gl.STATIC_DRAW );\n    gl.bindBuffer( gl.ARRAY_BUFFER, null );\n}\n```\n\nTest source code outside of webgl.\n\n```javascript\nrequire('webgl-mock');\nvar canvas = new HTMLCanvasElement( 500, 500 );\nvar gl = canvas.getContext( 'webgl' );\n\ndescribe('VertexBuffer', function() {\n    describe('#constructor()', function() {\n        it('should default type to gl.FLOAT', function() {\n            var vb = new VertexBuffer( gl );\n            assert( vb.type === gl.FLOAT );\n        });\n        it('should default mode to gl.TRIANGLES', function() {\n            var vb = new VertexBuffer( gl );\n            assert( vb.type === gl.TRIANGLES );\n        });\n    });\n});\n```\n","maintainers":[{"name":"kbirk","email":"birk.kevin@gmail.com"}],"time":{"modified":"2022-06-28T23:22:44.203Z","created":"2016-03-25T17:58:51.488Z","0.1.0":"2016-03-25T17:58:51.488Z","0.1.1":"2016-03-25T18:13:50.923Z","0.1.2":"2016-03-25T18:26:24.032Z","0.1.3":"2016-03-25T18:32:38.571Z","0.1.4":"2016-03-26T20:51:11.852Z","0.1.5":"2016-04-01T22:53:36.011Z","0.1.6":"2016-04-15T01:32:40.922Z","0.1.7":"2018-06-13T15:20:11.535Z"},"homepage":"https://github.com/kbirk/webgl-mock#readme","keywords":["webgl","test","mock","stub"],"repository":{"type":"git","url":"git+https://github.com/kbirk/webgl-mock.git"},"author":{"name":"Kevin Birk","email":"birk.kevin@gmail.com"},"bugs":{"url":"https://github.com/kbirk/webgl-mock/issues"},"license":"MIT","readmeFilename":"README.md"}