{"_id":"glsl-extract","_rev":"398835","name":"glsl-extract","description":"extract uniforms and attributes from glsl programs","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"mattdesl","email":"dave.des@gmail.com"},{"name":"mikkoh","email":"me@mikkoh.com"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"rezaali","email":"syed.reza.ali@gmail.com"},{"name":"tatumcreative","email":"tatum.creative@gmail.com"},{"name":"thibauts","email":"thibaut.seguy@gmail.com"},{"name":"wwwtyro","email":"wwwtyro@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"time":{"modified":"2021-08-04T04:23:40.000Z","created":"2013-08-25T09:28:21.034Z","1.0.0":"2014-07-05T22:18:41.741Z","0.0.2":"2013-08-25T22:54:05.368Z","0.0.1":"2013-08-25T09:28:21.034Z"},"users":{},"repository":{"type":"git","url":"git://github.com/gl-modules/glsl-extract.git"},"versions":{"1.0.0":{"name":"glsl-extract","version":"1.0.0","description":"extract uniforms and attributes from glsl programs","main":"index.js","scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"git://github.com/gl-modules/glsl-extract.git"},"keywords":["extract","glsl","uniforms","attributes"],"authors":["Hugh Kennedy <hughskennedy@gmail.com> (http://hughsk.io/)","Mikola Lysenko <mikolalysenko@gmail.com> (http://0fps.net)","Chris Dickinson <chris@neversaw.us> (http://neversaw.us)"],"license":"MIT","bugs":{"url":"https://github.com/gl-modules/glsl-extract/issues"},"dependencies":{"glsl-parser":"^1.0.0","glsl-tokenizer":"^1.0.0","glsl-deparser":"^1.0.0","cssauron-glsl":"0.0.0","utf8-stream":"0.0.0","through":"~2.3.4"},"devDependencies":{"tape":"~1.0.4","jsl":"0.0.7","duplexer":"~0.1.1"},"gitHead":"c4fca972f620f77fd1b8b0a3df3913e725cf19b5","homepage":"https://github.com/gl-modules/glsl-extract","_id":"glsl-extract@1.0.0","_shasum":"5982489e01fe70fb425174d66c8bb746a056a3b0","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"mattdesl","email":"dave.des@gmail.com"},{"name":"mikkoh","email":"me@mikkoh.com"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"rezaali","email":"syed.reza.ali@gmail.com"},{"name":"tatumcreative","email":"tatum.creative@gmail.com"},{"name":"thibauts","email":"thibaut.seguy@gmail.com"},{"name":"wwwtyro","email":"wwwtyro@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"dist":{"shasum":"5982489e01fe70fb425174d66c8bb746a056a3b0","size":7746,"noattachment":false,"key":"/glsl-extract/-/glsl-extract-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-extract/download/glsl-extract-1.0.0.tgz"},"directories":{},"publish_time":1404598721741,"_cnpm_publish_time":1404598721741,"_hasShrinkwrap":false},"0.0.2":{"name":"glsl-extract","version":"0.0.2","description":"extract uniforms and attributes from glsl programs","main":"index.js","scripts":{"test":"node test/index.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-extract.git"},"keywords":["extract","glsl","uniforms","attributes"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","bugs":{"url":"https://github.com/chrisdickinson/glsl-extract/issues"},"dependencies":{"glsl-parser":"0.0.5","glsl-tokenizer":"0.0.8","cssauron-glsl":"0.0.0","utf8-stream":"0.0.0","through":"~2.3.4","glsl-deparser":"0.0.2"},"devDependencies":{"tape":"~1.0.4","jsl":"0.0.7","duplexer":"~0.1.1"},"readmeFilename":"README.md","_id":"glsl-extract@0.0.2","dist":{"shasum":"5347988d8825fa114d175fe9d2cda8416c4b6b92","size":7676,"noattachment":false,"key":"/glsl-extract/-/glsl-extract-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-extract/download/glsl-extract-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"mattdesl","email":"dave.des@gmail.com"},{"name":"mikkoh","email":"me@mikkoh.com"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"rezaali","email":"syed.reza.ali@gmail.com"},{"name":"tatumcreative","email":"tatum.creative@gmail.com"},{"name":"thibauts","email":"thibaut.seguy@gmail.com"},{"name":"wwwtyro","email":"wwwtyro@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"directories":{},"publish_time":1377471245368,"_cnpm_publish_time":1377471245368,"_hasShrinkwrap":false},"0.0.1":{"name":"glsl-extract","version":"0.0.1","description":"extract uniforms and attributes from glsl programs","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-extract.git"},"keywords":["extract","glsl","uniforms","attributes"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","bugs":{"url":"https://github.com/chrisdickinson/glsl-extract/issues"},"dependencies":{"glsl-parser":"0.0.5","glsl-tokenizer":"0.0.8","cssauron-glsl":"0.0.0","utf8-stream":"0.0.0","through":"~2.3.4","glsl-deparser":"0.0.2"},"readmeFilename":"README.md","_id":"glsl-extract@0.0.1","dist":{"shasum":"ecb23c1b98b684fa3f440ed0ffb72bd3a0c5e7b0","size":5465,"noattachment":false,"key":"/glsl-extract/-/glsl-extract-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-extract/download/glsl-extract-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"mattdesl","email":"dave.des@gmail.com"},{"name":"mikkoh","email":"me@mikkoh.com"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"rezaali","email":"syed.reza.ali@gmail.com"},{"name":"tatumcreative","email":"tatum.creative@gmail.com"},{"name":"thibauts","email":"thibaut.seguy@gmail.com"},{"name":"wwwtyro","email":"wwwtyro@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"directories":{},"publish_time":1377422901034,"_cnpm_publish_time":1377422901034,"_hasShrinkwrap":false}},"readme":"# glsl-extract\n\nextract attribute and uniform data from glsl files, no matter how nested.\n\n```javascript\nvar extract = require('glsl-extract')\n\nextract(fs.createReadStream('test.glsl'))(function(err, info) {\n  {attributes, uniforms} = info\n  for(var def of uniforms) {\n    {name, type} = def  // where \"name\" is the full dotted, array'd\n                        // gl.getUniformLocation lookup path and\n                        // type is the declared type.\n  }\n})\n\nextract(\"also works with just text\")(function(err, info) {\n  // should execute on same frame.\n})\n\n```\n\n# api\n\n### extract(ReadableStream | String | Buffer[, getContextFunction) -> Continuable\n\nGiven a readable stream, string, or buffer, return a continuable that will trigger\nparsing. The continuable will call its callback with `err` (if any), and `data`,\nwhere `data` is comprised of `{attributes:[GLSLLocation], uniforms:[GLSLLocation]}`.\n\n### GLSLLocation\n\nA GLSLLocation is just a plain object containing `name` (the appropriate name to\npass to `gl.getUniformLocation`) and `type` (one of the primitive GLSL types).\n\n# license\n\nMIT\n","_attachments":{},"homepage":"https://github.com/gl-modules/glsl-extract","bugs":{"url":"https://github.com/gl-modules/glsl-extract/issues"},"license":"MIT"}