{"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":"chrisdickinson","email":"chris@neversaw.us"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"b6bfe6353a42b15b1fac354290cb3551e0582812","tarball":"http://registry-npm.ywwl.com/glsl-min-stream/download/glsl-min-stream-1.0.0.tgz","integrity":"sha512-wHQTSd24MNPYZSODja7ppxvJ4x+BEMi+LrF3i0c15o3N3+sMVGNgQIbfVWztZ6bzyt+VOZVtq6dCb2XJW3APFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDD/wdY8XECPk3S1yIS9SYIodVE88FrTcMBlNrtE5LnVQIhALnA1R/BISca085SFEg+BRF662SATl/HPzWCsav1jgYY"}],"size":1609,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-1.0.0.tgz"},"directories":{},"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","publish_time":1404599644049,"_cnpm_publish_time":1404599644049,"dist-tags":{"latest":"1.0.0"}}