{"_id":"glsl-min-stream","_rev":"398828","name":"glsl-min-stream","description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","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:39.000Z","created":"2012-11-24T22:39:56.779Z","1.0.0":"2014-07-05T22:34:04.049Z","0.0.2":"2012-11-25T00:26:35.757Z","0.0.1":"2012-11-24T23:42:01.322Z","0.0.0":"2012-11-24T22:39:56.779Z"},"users":{},"repository":{"type":"git","url":"git://github.com/gl-modules/glsl-min-stream.git"},"versions":{"1.0.0":{"name":"glsl-min-stream","version":"1.0.0","description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/gl-modules/glsl-min-stream.git"},"keywords":["glsl","minification","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","dependencies":{"shortest":"0.0.0","through":"~1.1.2","cssauron-glsl":"X.X.X"},"gitHead":"b90664e0b6e7630bdf54075cb683bd7830492d60","bugs":{"url":"https://github.com/gl-modules/glsl-min-stream/issues"},"homepage":"https://github.com/gl-modules/glsl-min-stream","_id":"glsl-min-stream@1.0.0","_shasum":"b6bfe6353a42b15b1fac354290cb3551e0582812","_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":"b6bfe6353a42b15b1fac354290cb3551e0582812","size":1609,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-min-stream/download/glsl-min-stream-1.0.0.tgz"},"directories":{},"publish_time":1404599644049,"_cnpm_publish_time":1404599644049,"_hasShrinkwrap":false},"0.0.2":{"name":"glsl-min-stream","version":"0.0.2","description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-min-stream.git"},"keywords":["glsl","minification","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","dependencies":{"shortest":"0.0.0","through":"~1.1.2","cssauron-glsl":"X.X.X"},"_id":"glsl-min-stream@0.0.2","dist":{"shasum":"6a4441d5d3880196c02535de22bee0cd0f8c7d96","size":1537,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-min-stream/download/glsl-min-stream-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"}],"directories":{},"publish_time":1353803195757,"_cnpm_publish_time":1353803195757,"_hasShrinkwrap":false},"0.0.1":{"name":"glsl-min-stream","version":"0.0.1","description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-min-stream.git"},"keywords":["glsl","minification","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","dependencies":{"shortest":"0.0.0","through":"~1.1.2","cssauron-glsl":"X.X.X"},"_id":"glsl-min-stream@0.0.1","dist":{"shasum":"1237b66d0c5bdd8f28f1290c3a9c13ba2c937011","size":1531,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-min-stream/download/glsl-min-stream-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"}],"directories":{},"publish_time":1353800521322,"_cnpm_publish_time":1353800521322,"_hasShrinkwrap":false},"0.0.0":{"name":"glsl-min-stream","version":"0.0.0","description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/glsl-min-stream.git"},"keywords":["glsl","minification","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","dependencies":{"shortest":"0.0.0","through":"~1.1.2","cssauron-glsl":"X.X.X"},"_id":"glsl-min-stream@0.0.0","dist":{"shasum":"59024b3ac97c114911fa0925681753c1843346d2","size":1530,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glsl-min-stream/download/glsl-min-stream-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"}],"directories":{},"publish_time":1353796796779,"_cnpm_publish_time":1353796796779,"_hasShrinkwrap":false}},"readme":"# glsl-min-stream\n\nTransform [glsl-parser](https://github.com/chrisdickinson/glsl-parser.git) AST nodes\non-the-fly by renaming variables into shorter forms.\n\n```javascript\nvar tokenizer = require('glsl-tokenizer')\n  , parser = require('glsl-parser')\n  , deparser = require('glsl-deparser')\n  , minify = require('./index')\n\nprocess.stdin\n  .pipe(tokenizer())\n  .pipe(parser())\n  .pipe(minify())           // <-- the minifier\n  .pipe(deparser(false))    // <-- \"false\" == no unnecessary whitespace, please.\n  .pipe(process.stdout)\n\nprocess.stdin.resume()\n```\n\n# API\n\n### minifier = require('glsl-minifier')([safe_word_list], should_mutate_storages) -> minifier stream\n\nCreate a [through stream](https://github.com/dominictarr/stream-spec#through-sync-writable-and-readable-aka-filter) that rewrites incoming declared variables.\n\n* `safe_word_list` defaults to `[\"main\"]` so that the main function is not overridden.\n* `should_mutate_storages`, a boolean defaulted to `false`, determines whether the minifier should attempt to rewrite variables declared as `varying`, `attribute`, or `uniform` (usually you do not want to do this, as the client program is expecting specific variable names).\n\n# License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/gl-modules/glsl-min-stream","bugs":{"url":"https://github.com/gl-modules/glsl-min-stream/issues"},"license":"MIT"}