{"_id":"glsl-extract","_rev":"770266","name":"glsl-extract","description":"extract uniforms and attributes from glsl programs","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2024-06-30T15:40:03.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":"chrisdickinson","email":"chris@neversaw.us"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"5982489e01fe70fb425174d66c8bb746a056a3b0","tarball":"http://registry-npm.ywwl.com/glsl-extract/download/glsl-extract-1.0.0.tgz","integrity":"sha512-IGU4SnFxqzHK6sOA6Lp+tZ9xhuU/ZF+OYd4V7LJoZzWHd3loacOSFYR3vTZFcL7hHVHsS6GehYeuX+9veO8vcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu5mOqrmhFf2c15DXiX6jrbU7kEY3zD0vHN7pOMad6OAIgEnEsGuGAgvGGRLQDAElQdSYZwzQju2osaC7uoadBlKA="}],"size":7746,"noattachment":false,"key":"/glsl-extract/-/glsl-extract-1.0.0.tgz"},"directories":{},"publish_time":1404598721741,"_cnpm_publish_time":1404598721741},"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"},"_id":"glsl-extract@0.0.2","dist":{"shasum":"5347988d8825fa114d175fe9d2cda8416c4b6b92","tarball":"http://registry-npm.ywwl.com/glsl-extract/download/glsl-extract-0.0.2.tgz","integrity":"sha512-oqonJS8+86Q0vZKAGU4NfDlWLficsZbvajLa+Bi615/YKRQAf1YeBu7o1UPAw4qrT1W+v4h42L7PKDiqNb52oA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCnJrNzklxFw12xqiEHAk8Oj4thzQEx8nX70dxKgh8UwIgaMuMHq5r8G+I2V298IykAPAM97hMk2pSb9zu9Ycfq1k="}],"size":7676,"noattachment":false,"key":"/glsl-extract/-/glsl-extract-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"directories":{},"publish_time":1377471245368,"_cnpm_publish_time":1377471245368},"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"},"_id":"glsl-extract@0.0.1","dist":{"shasum":"ecb23c1b98b684fa3f440ed0ffb72bd3a0c5e7b0","tarball":"http://registry-npm.ywwl.com/glsl-extract/download/glsl-extract-0.0.1.tgz","integrity":"sha512-H5YOgmyYVJaSUC895sht1TgS7u+KchaXxS1I4fTtgipDguR1qMMaqDZvlqdfJ8F7IwJzSmon6w6Axid7e8TMBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzHYeN5btaJ6eudN2CCw7+8qKXQ/qLmaHZQxYZO8D06AiEAjeVE9Oa3XF+141lGqXqcRQkcDmJ5yTpgvIhXLPpr2sE="}],"size":5465,"noattachment":false,"key":"/glsl-extract/-/glsl-extract-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"directories":{},"publish_time":1377422901034,"_cnpm_publish_time":1377422901034}},"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"}