{"_id":"glsl-deparser","_rev":"398824","name":"glsl-deparser","description":"through stream that translates glsl-parser AST nodes into working glsl code","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:38.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":"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":"5e7eb363ec54af92916ccffc82ed03e9bfe33e0c","size":7220,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-deparser/download/glsl-deparser-1.0.0.tgz"},"publish_time":1404598012182,"_cnpm_publish_time":1404598012182,"_hasShrinkwrap":false},"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","size":7146,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-deparser/download/glsl-deparser-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_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"}],"publish_time":1398382668866,"_cnpm_publish_time":1398382668866,"_hasShrinkwrap":false},"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","size":7115,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-deparser/download/glsl-deparser-0.0.2.tgz"},"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"}],"publish_time":1353839842800,"_cnpm_publish_time":1353839842800,"_hasShrinkwrap":false},"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","size":7103,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-deparser/download/glsl-deparser-0.0.1.tgz"},"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"}],"publish_time":1353794077664,"_cnpm_publish_time":1353794077664,"_hasShrinkwrap":false},"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","size":7056,"noattachment":false,"key":"/glsl-deparser/-/glsl-deparser-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-deparser/download/glsl-deparser-0.0.0.tgz"},"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"}],"publish_time":1353721176315,"_cnpm_publish_time":1353721176315,"_hasShrinkwrap":false}},"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"}