{"_id":"glsl-extract","_rev":"22-3560d7b86be2d335528df44bf564c037","name":"glsl-extract","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"glsl-extract","version":"0.0.1","keywords":["extract","glsl","uniforms","attributes"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-extract@0.0.1","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"bugs":{"url":"https://github.com/chrisdickinson/glsl-extract/issues"},"dist":{"shasum":"ecb23c1b98b684fa3f440ed0ffb72bd3a0c5e7b0","tarball":"https://registry.npmjs.org/glsl-extract/-/glsl-extract-0.0.1.tgz","integrity":"sha512-H5YOgmyYVJaSUC895sht1TgS7u+KchaXxS1I4fTtgipDguR1qMMaqDZvlqdfJ8F7IwJzSmon6w6Axid7e8TMBg==","signatures":[{"sig":"MEUCIAzHYeN5btaJ6eudN2CCw7+8qKXQ/qLmaHZQxYZO8D06AiEAjeVE9Oa3XF+141lGqXqcRQkcDmJ5yTpgvIhXLPpr2sE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"node test.js"},"_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"repository":{"url":"git://github.com/chrisdickinson/glsl-extract.git","type":"git"},"_npmVersion":"1.3.5","description":"extract uniforms and attributes from glsl programs","directories":{},"dependencies":{"through":"~2.3.4","glsl-parser":"0.0.5","utf8-stream":"0.0.0","cssauron-glsl":"0.0.0","glsl-deparser":"0.0.2","glsl-tokenizer":"0.0.8"}},"0.0.2":{"name":"glsl-extract","version":"0.0.2","keywords":["extract","glsl","uniforms","attributes"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-extract@0.0.2","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"bugs":{"url":"https://github.com/chrisdickinson/glsl-extract/issues"},"dist":{"shasum":"5347988d8825fa114d175fe9d2cda8416c4b6b92","tarball":"https://registry.npmjs.org/glsl-extract/-/glsl-extract-0.0.2.tgz","integrity":"sha512-oqonJS8+86Q0vZKAGU4NfDlWLficsZbvajLa+Bi615/YKRQAf1YeBu7o1UPAw4qrT1W+v4h42L7PKDiqNb52oA==","signatures":[{"sig":"MEUCIQDCnJrNzklxFw12xqiEHAk8Oj4thzQEx8nX70dxKgh8UwIgaMuMHq5r8G+I2V298IykAPAM97hMk2pSb9zu9Ycfq1k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"node test/index.js"},"_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"repository":{"url":"git://github.com/chrisdickinson/glsl-extract.git","type":"git"},"_npmVersion":"1.3.5","description":"extract uniforms and attributes from glsl programs","directories":{},"dependencies":{"through":"~2.3.4","glsl-parser":"0.0.5","utf8-stream":"0.0.0","cssauron-glsl":"0.0.0","glsl-deparser":"0.0.2","glsl-tokenizer":"0.0.8"},"devDependencies":{"jsl":"0.0.7","tape":"~1.0.4","duplexer":"~0.1.1"}},"1.0.0":{"name":"glsl-extract","version":"1.0.0","keywords":["extract","glsl","uniforms","attributes"],"license":"MIT","_id":"glsl-extract@1.0.0","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/gl-modules/glsl-extract","bugs":{"url":"https://github.com/gl-modules/glsl-extract/issues"},"dist":{"shasum":"5982489e01fe70fb425174d66c8bb746a056a3b0","tarball":"https://registry.npmjs.org/glsl-extract/-/glsl-extract-1.0.0.tgz","integrity":"sha512-IGU4SnFxqzHK6sOA6Lp+tZ9xhuU/ZF+OYd4V7LJoZzWHd3loacOSFYR3vTZFcL7hHVHsS6GehYeuX+9veO8vcw==","signatures":[{"sig":"MEUCIQCu5mOqrmhFf2c15DXiX6jrbU7kEY3zD0vHN7pOMad6OAIgEnEsGuGAgvGGRLQDAElQdSYZwzQju2osaC7uoadBlKA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5982489e01fe70fb425174d66c8bb746a056a3b0","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)"],"gitHead":"c4fca972f620f77fd1b8b0a3df3913e725cf19b5","scripts":{"test":"node test/index.js"},"_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"repository":{"url":"git://github.com/gl-modules/glsl-extract.git","type":"git"},"_npmVersion":"1.4.14","description":"extract uniforms and attributes from glsl programs","directories":{},"dependencies":{"through":"~2.3.4","glsl-parser":"^1.0.0","utf8-stream":"0.0.0","cssauron-glsl":"0.0.0","glsl-deparser":"^1.0.0","glsl-tokenizer":"^1.0.0"},"devDependencies":{"jsl":"0.0.7","tape":"~1.0.4","duplexer":"~0.1.1"}}},"time":{"created":"2013-08-25T09:28:19.658Z","modified":"2024-12-29T00:46:56.538Z","0.0.1":"2013-08-25T09:28:21.034Z","0.0.2":"2013-08-25T22:54:05.368Z","1.0.0":"2014-07-05T22:18:41.741Z"},"bugs":{"url":"https://github.com/gl-modules/glsl-extract/issues"},"license":"MIT","homepage":"https://github.com/gl-modules/glsl-extract","keywords":["extract","glsl","uniforms","attributes"],"repository":{"url":"git://github.com/gl-modules/glsl-extract.git","type":"git"},"description":"extract uniforms and attributes from glsl programs","maintainers":[{"email":"mikolalysenko@gmail.com","name":"mikolalysenko"},{"email":"wwwtyro@gmail.com","name":"wwwtyro"},{"email":"thibaut.seguy@gmail.com","name":"thibauts"},{"email":"me@mikkoh.com","name":"mikkoh"},{"email":"javascript@yosh.is","name":"yoshuawuyts"},{"email":"dave.des@gmail.com","name":"mattdesl"},{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"chris@neversaw.us","name":"chrisdickinson"},{"email":"tatum.creative@gmail.com","name":"tatumcreative"}],"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","readmeFilename":"README.md"}