{"_id":"glsl-deparser","_rev":"443927","name":"glsl-deparser","description":"through stream that translates glsl-parser AST nodes into working glsl code","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"time":{"modified":"2024-06-19T00:13:42.000Z","created":"2012-11-24T01:39:36.315Z","1.0.0":"2014-07-05T22:06:52.182Z","0.0.3":"2014-04-24T23:37:48.866Z","0.0.2":"2012-11-25T10:37:22.800Z","0.0.1":"2012-11-24T21:54:37.664Z","0.0.0":"2012-11-24T01:39:36.315Z"},"users":{},"repository":{"type":"git","url":"git://github.com/gl-modules/glsl-deparser.git"},"versions":{"1.0.0":{"name":"glsl-deparser","version":"1.0.0","description":"through stream that translates glsl-parser AST nodes into working glsl code","main":"index.js","directories":{"test":"test"},"dependencies":{"cssauron-glsl":"X.X.X","through":"~1.1.2"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/gl-modules/glsl-deparser.git"},"keywords":["glsl","deparser","stream"],"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","gitHead":"a191d1b8d1afa5b9a2813c234fdf3ebba3a15e5e","bugs":{"url":"https://github.com/gl-modules/glsl-deparser/issues"},"homepage":"https://github.com/gl-modules/glsl-deparser","_id":"glsl-deparser@1.0.0","_shasum":"5e7eb363ec54af92916ccffc82ed03e9bfe33e0c","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dist":{"shasum":"5e7eb363ec54af92916ccffc82ed03e9bfe33e0c","tarball":"http://registry-npm.ywwl.com/glsl-deparser/download/glsl-deparser-1.0.0.tgz","integrity":"sha512-keVY8exsnfNR03T4zYQLBRyYnOCy27uZMq/64sKISUAPe2JpHQMegcx3T7UHdFlJxckro+4v5fnmDga6bHXf+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDl7jFbZGjN7wY/FqvP1BARa5OVaaGeuh4NgMQg385pHAIhANuOfZBtBYWuIOr1QrRpmpwVEy/6RorBH0eWCsSpjuq0"}],"size":7220,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-1.0.0.tgz"},"publish_time":1404598012182,"_cnpm_publish_time":1404598012182},"0.0.3":{"name":"glsl-deparser","version":"0.0.3","description":"through stream that translates glsl-parser AST nodes into working glsl code","main":"index.js","directories":{"test":"test"},"dependencies":{"cssauron-glsl":"X.X.X","through":"~1.1.2"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-deparser.git"},"keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","bugs":{"url":"https://github.com/chrisdickinson/glsl-deparser/issues"},"homepage":"https://github.com/chrisdickinson/glsl-deparser","_id":"glsl-deparser@0.0.3","dist":{"shasum":"9e1b28d9cfd056409acecf880721af2f894e537e","tarball":"http://registry-npm.ywwl.com/glsl-deparser/download/glsl-deparser-0.0.3.tgz","integrity":"sha512-0gy6QsPo3wvZV0Otl79BoozAivuWpUIWsKQ7fqsjpa14ZRa+UxCWo3mOiBJd7KnI+To/MFQcwwFRfUwaMZWs1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSVc/mRsS4A7IEZWHnA7znnYprQ4spJElcz5X8Ii+ObAiBmsm39h0EPGOCEsEwni9bpwgLb3Kr+VOAM0T5yFylgoA=="}],"size":7146,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"publish_time":1398382668866,"_cnpm_publish_time":1398382668866},"0.0.2":{"name":"glsl-deparser","version":"0.0.2","description":"through stream that translates glsl-parser AST nodes into working glsl code","main":"index.js","directories":{"test":"test"},"dependencies":{"cssauron-glsl":"X.X.X","through":"~1.1.2"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-deparser.git"},"keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-deparser@0.0.2","dist":{"shasum":"753f2b06a2db37564432b59b996d709e217022e5","tarball":"http://registry-npm.ywwl.com/glsl-deparser/download/glsl-deparser-0.0.2.tgz","integrity":"sha512-aLLppyL6cuff7Blor4sN1tj4AJNKhxWw9I+f6/NTfGDRoUYLMbyzZ5eMtGubb0CtNsez4GvtyzKo9eLqaFVr4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6IVRSccXhtXFMQ6/QuDTTqzikeOxM528gR6KrNQTSEAiEAyuaL4Nfv2n4ruT6atr1i2UrIB5Zv92/oJHNy6fAnHFo="}],"size":7115,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.2.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"publish_time":1353839842800,"_cnpm_publish_time":1353839842800},"0.0.1":{"name":"glsl-deparser","version":"0.0.1","description":"through stream that translates glsl-parser AST nodes into working glsl code","main":"index.js","directories":{"test":"test"},"dependencies":{"cssauron-glsl":"X.X.X","through":"~1.1.2"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-deparser.git"},"keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-deparser@0.0.1","dist":{"shasum":"3b17dc39a8974c97f07048a2737228285242c298","tarball":"http://registry-npm.ywwl.com/glsl-deparser/download/glsl-deparser-0.0.1.tgz","integrity":"sha512-pz9ejeyi6J6iCuOtLtrXpNFbq7tlnzSKb5f263NfVo0WUFSLaFC1hEivDOAubkNQHLiaizUv767N+9aCT0aazg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr+o6TGSra3Xp0ALxvD1KaHxKvPp7wrt6AFlvaC6dXVAIgQN7AeDZNIGfY+qZ9XpNNkMsVYunfSff3a7CON0IMuPY="}],"size":7103,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.1.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"publish_time":1353794077664,"_cnpm_publish_time":1353794077664},"0.0.0":{"name":"glsl-deparser","version":"0.0.0","description":"through stream that translates glsl-parser AST nodes into working glsl code","main":"index.js","directories":{"test":"test"},"dependencies":{"cssauron-glsl":"X.X.X","through":"~1.1.2"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-deparser.git"},"keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-deparser@0.0.0","dist":{"shasum":"c0b43fd419eefe34c10699a469639e32fe0f6fdb","tarball":"http://registry-npm.ywwl.com/glsl-deparser/download/glsl-deparser-0.0.0.tgz","integrity":"sha512-Ni/Wfmlr73qdQPgTzlFMeRIXdm9frJiwRahz+m1QXnZLChFKwgsjJ9cBHlI8bZD2GoyJ9feVxp9dfPOJjmoVpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW/pg1C10B3g9vkBAB6Eaw2giVQjR7adADz3NZpNlodQIgTTspYj7dCNwmEmuxhgjjxZMsdGRQn7m0YfwUFBvtVkE="}],"size":7056,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.0.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"publish_time":1353721176315,"_cnpm_publish_time":1353721176315}},"readme":"# glsl-deparser\n\n```javascript\n\nvar Path = require('path')\n\nvar tokenizer = require('glsl-tokenizer')()\n  , parser = require('glsl-parser')\n  , deparser = require('glsl-deparser')\n\nprocess.stdin\n  .pipe(tokenizer)\n  .pipe(parser())\n  .pipe(deparser())             // <-- deparser!\n  .pipe(process.stdout)\n\nprocess.stdin.resume()\n\n```\n\ntransform a stream of [glsl-parser](https://github.com/chrisdickinson/glsl-parser) AST nodes\ninto strings.\n\nonly operates on top-level statements emitted by `glsl-parser`, so the code it emits is executable\nby webgl.\n\n# api\n\n### deparser(whitespace_enabled=true, tab_text='  ')\n\nCreates a `readable`/`writable` stream.\n\nIf no args are provided, `whitespace` is assumed to be enabled, and the tab text will be `'  '`.\n\nIf you pass `false` for the first arg, only syntactically significant whitespace will be emitted (it'll behave like a poor man's minifier).\n\nIf you pass `true` and tab text, that tab text will be used to indent code.\n\n# note\n\nthe big caveat is that preprocessor if statements (`#if*`, `#endif`) won't work unless\neach branch produces a parseable tree.\n\n# license\n\nMIT\n","_attachments":{},"homepage":"https://github.com/gl-modules/glsl-deparser","bugs":{"url":"https://github.com/gl-modules/glsl-deparser/issues"},"license":"MIT"}