{"_id":"glsl-deparser","_rev":"26-1ce070a523d37ab6f9e684dbc5beae5a","name":"glsl-deparser","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"glsl-deparser","version":"0.0.0","keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-deparser@0.0.0","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dist":{"shasum":"c0b43fd419eefe34c10699a469639e32fe0f6fdb","tarball":"https://registry.npmjs.org/glsl-deparser/-/glsl-deparser-0.0.0.tgz","integrity":"sha512-Ni/Wfmlr73qdQPgTzlFMeRIXdm9frJiwRahz+m1QXnZLChFKwgsjJ9cBHlI8bZD2GoyJ9feVxp9dfPOJjmoVpw==","signatures":[{"sig":"MEUCIQCW/pg1C10B3g9vkBAB6Eaw2giVQjR7adADz3NZpNlodQIgTTspYj7dCNwmEmuxhgjjxZMsdGRQn7m0YfwUFBvtVkE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"url":"git://github.com/chrisdickinson/glsl-deparser.git","type":"git"},"description":"through stream that translates glsl-parser AST nodes into working glsl code","directories":{"test":"test"},"dependencies":{"through":"~1.1.2","cssauron-glsl":"X.X.X"},"devDependencies":{}},"0.0.1":{"name":"glsl-deparser","version":"0.0.1","keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-deparser@0.0.1","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dist":{"shasum":"3b17dc39a8974c97f07048a2737228285242c298","tarball":"https://registry.npmjs.org/glsl-deparser/-/glsl-deparser-0.0.1.tgz","integrity":"sha512-pz9ejeyi6J6iCuOtLtrXpNFbq7tlnzSKb5f263NfVo0WUFSLaFC1hEivDOAubkNQHLiaizUv767N+9aCT0aazg==","signatures":[{"sig":"MEUCIQDr+o6TGSra3Xp0ALxvD1KaHxKvPp7wrt6AFlvaC6dXVAIgQN7AeDZNIGfY+qZ9XpNNkMsVYunfSff3a7CON0IMuPY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"url":"git://github.com/chrisdickinson/glsl-deparser.git","type":"git"},"description":"through stream that translates glsl-parser AST nodes into working glsl code","directories":{"test":"test"},"dependencies":{"through":"~1.1.2","cssauron-glsl":"X.X.X"},"devDependencies":{}},"0.0.2":{"name":"glsl-deparser","version":"0.0.2","keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-deparser@0.0.2","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dist":{"shasum":"753f2b06a2db37564432b59b996d709e217022e5","tarball":"https://registry.npmjs.org/glsl-deparser/-/glsl-deparser-0.0.2.tgz","integrity":"sha512-aLLppyL6cuff7Blor4sN1tj4AJNKhxWw9I+f6/NTfGDRoUYLMbyzZ5eMtGubb0CtNsez4GvtyzKo9eLqaFVr4Q==","signatures":[{"sig":"MEUCIG6IVRSccXhtXFMQ6/QuDTTqzikeOxM528gR6KrNQTSEAiEAyuaL4Nfv2n4ruT6atr1i2UrIB5Zv92/oJHNy6fAnHFo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"url":"git://github.com/chrisdickinson/glsl-deparser.git","type":"git"},"description":"through stream that translates glsl-parser AST nodes into working glsl code","directories":{"test":"test"},"dependencies":{"through":"~1.1.2","cssauron-glsl":"X.X.X"},"devDependencies":{}},"0.0.3":{"name":"glsl-deparser","version":"0.0.3","keywords":["glsl","deparser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-deparser@0.0.3","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"homepage":"https://github.com/chrisdickinson/glsl-deparser","bugs":{"url":"https://github.com/chrisdickinson/glsl-deparser/issues"},"dist":{"shasum":"9e1b28d9cfd056409acecf880721af2f894e537e","tarball":"https://registry.npmjs.org/glsl-deparser/-/glsl-deparser-0.0.3.tgz","integrity":"sha512-0gy6QsPo3wvZV0Otl79BoozAivuWpUIWsKQ7fqsjpa14ZRa+UxCWo3mOiBJd7KnI+To/MFQcwwFRfUwaMZWs1w==","signatures":[{"sig":"MEQCIHSVc/mRsS4A7IEZWHnA7znnYprQ4spJElcz5X8Ii+ObAiBmsm39h0EPGOCEsEwni9bpwgLb3Kr+VOAM0T5yFylgoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"repository":{"url":"git://github.com/chrisdickinson/glsl-deparser.git","type":"git"},"_npmVersion":"1.4.3","description":"through stream that translates glsl-parser AST nodes into working glsl code","directories":{"test":"test"},"dependencies":{"through":"~1.1.2","cssauron-glsl":"X.X.X"},"devDependencies":{}},"1.0.0":{"name":"glsl-deparser","version":"1.0.0","keywords":["glsl","deparser","stream"],"license":"MIT","_id":"glsl-deparser@1.0.0","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"homepage":"https://github.com/gl-modules/glsl-deparser","bugs":{"url":"https://github.com/gl-modules/glsl-deparser/issues"},"dist":{"shasum":"5e7eb363ec54af92916ccffc82ed03e9bfe33e0c","tarball":"https://registry.npmjs.org/glsl-deparser/-/glsl-deparser-1.0.0.tgz","integrity":"sha512-keVY8exsnfNR03T4zYQLBRyYnOCy27uZMq/64sKISUAPe2JpHQMegcx3T7UHdFlJxckro+4v5fnmDga6bHXf+w==","signatures":[{"sig":"MEYCIQDl7jFbZGjN7wY/FqvP1BARa5OVaaGeuh4NgMQg385pHAIhANuOfZBtBYWuIOr1QrRpmpwVEy/6RorBH0eWCsSpjuq0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5e7eb363ec54af92916ccffc82ed03e9bfe33e0c","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":"a191d1b8d1afa5b9a2813c234fdf3ebba3a15e5e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"repository":{"url":"git://github.com/gl-modules/glsl-deparser.git","type":"git"},"_npmVersion":"1.4.14","description":"through stream that translates glsl-parser AST nodes into working glsl code","directories":{"test":"test"},"dependencies":{"through":"~1.1.2","cssauron-glsl":"X.X.X"},"devDependencies":{}}},"time":{"created":"2012-11-24T01:39:34.682Z","modified":"2024-12-29T00:46:55.201Z","0.0.0":"2012-11-24T01:39:36.315Z","0.0.1":"2012-11-24T21:54:37.664Z","0.0.2":"2012-11-25T10:37:22.800Z","0.0.3":"2014-04-24T23:37:48.866Z","1.0.0":"2014-07-05T22:06:52.182Z"},"bugs":{"url":"https://github.com/gl-modules/glsl-deparser/issues"},"license":"MIT","homepage":"https://github.com/gl-modules/glsl-deparser","keywords":["glsl","deparser","stream"],"repository":{"url":"git://github.com/gl-modules/glsl-deparser.git","type":"git"},"description":"through stream that translates glsl-parser AST nodes into working glsl code","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-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","readmeFilename":"README.md"}