{"_id":"glsl-min-stream","_rev":"24-3d0a066d913288ac4da7a044a9b87459","name":"glsl-min-stream","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"glsl-min-stream","version":"0.0.0","keywords":["glsl","minification","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-min-stream@0.0.0","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dist":{"shasum":"59024b3ac97c114911fa0925681753c1843346d2","tarball":"https://registry.npmjs.org/glsl-min-stream/-/glsl-min-stream-0.0.0.tgz","integrity":"sha512-tmeuvRn+rmhggXEPHtnahiLvg2xBjZRjXigce3Ss0mXZ8krvLek8AQqYph2ovHK1l14fk5t0opoZrrPr+JfoNQ==","signatures":[{"sig":"MEUCIA4+HicDIClJ1USiFdgbD+cWJaF4V5MPuDiZ92KnbAEeAiEA2FHfQK7poRMHeparzhvZlb6CAmxAnovUcusord06QzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"url":"git://github.com/chrisdickinson/glsl-min-stream.git","type":"git"},"description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","directories":{},"dependencies":{"through":"~1.1.2","shortest":"0.0.0","cssauron-glsl":"X.X.X"}},"0.0.1":{"name":"glsl-min-stream","version":"0.0.1","keywords":["glsl","minification","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-min-stream@0.0.1","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dist":{"shasum":"1237b66d0c5bdd8f28f1290c3a9c13ba2c937011","tarball":"https://registry.npmjs.org/glsl-min-stream/-/glsl-min-stream-0.0.1.tgz","integrity":"sha512-lQlU5GoF4PMIEyPnBNxl5B9CQH/mzSdohodthoihORz2jHSJ+7rtS+DkE5c9P5mTQjtB104Lr01iKRjejbniGA==","signatures":[{"sig":"MEYCIQCC/4FHVJe6R5v9y3/jR9gqeJJyP/C06zk+3Yjw9gJ4QwIhAL08Vu1vmZwU9j2cZZz5w+U+/JsuOXRgWnd2SxSPk+E2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"url":"git://github.com/chrisdickinson/glsl-min-stream.git","type":"git"},"description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","directories":{},"dependencies":{"through":"~1.1.2","shortest":"0.0.0","cssauron-glsl":"X.X.X"}},"0.0.2":{"name":"glsl-min-stream","version":"0.0.2","keywords":["glsl","minification","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","_id":"glsl-min-stream@0.0.2","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dist":{"shasum":"6a4441d5d3880196c02535de22bee0cd0f8c7d96","tarball":"https://registry.npmjs.org/glsl-min-stream/-/glsl-min-stream-0.0.2.tgz","integrity":"sha512-onJdG4ec+81uoH6kbNggoyz+5tsUPXvW1pcsmHninSGH8Fg6HziiCsFdG8vsco6hDxWeTBSgcwwi7nSnZPfpiA==","signatures":[{"sig":"MEUCID0juvFWo8hxutIJDLGvFMZ4NO6rqaLxWUvrvCY0klw/AiEA4eAj0Saa9Fmtio3v2hgEQ4Hdd67+iMqaU1uhXR4Y5d8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"url":"git://github.com/chrisdickinson/glsl-min-stream.git","type":"git"},"description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","directories":{},"dependencies":{"through":"~1.1.2","shortest":"0.0.0","cssauron-glsl":"X.X.X"}},"1.0.0":{"name":"glsl-min-stream","version":"1.0.0","keywords":["glsl","minification","stream"],"license":"MIT","_id":"glsl-min-stream@1.0.0","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/gl-modules/glsl-min-stream","bugs":{"url":"https://github.com/gl-modules/glsl-min-stream/issues"},"dist":{"shasum":"b6bfe6353a42b15b1fac354290cb3551e0582812","tarball":"https://registry.npmjs.org/glsl-min-stream/-/glsl-min-stream-1.0.0.tgz","integrity":"sha512-wHQTSd24MNPYZSODja7ppxvJ4x+BEMi+LrF3i0c15o3N3+sMVGNgQIbfVWztZ6bzyt+VOZVtq6dCb2XJW3APFw==","signatures":[{"sig":"MEYCIQDD/wdY8XECPk3S1yIS9SYIodVE88FrTcMBlNrtE5LnVQIhALnA1R/BISca085SFEg+BRF662SATl/HPzWCsav1jgYY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b6bfe6353a42b15b1fac354290cb3551e0582812","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":"b90664e0b6e7630bdf54075cb683bd7830492d60","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"repository":{"url":"git://github.com/gl-modules/glsl-min-stream.git","type":"git"},"_npmVersion":"1.4.14","description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","directories":{},"dependencies":{"through":"~1.1.2","shortest":"0.0.0","cssauron-glsl":"X.X.X"}}},"time":{"created":"2012-11-24T22:39:55.918Z","modified":"2024-12-29T00:46:59.294Z","0.0.0":"2012-11-24T22:39:56.779Z","0.0.1":"2012-11-24T23:42:01.322Z","0.0.2":"2012-11-25T00:26:35.757Z","1.0.0":"2014-07-05T22:34:04.049Z"},"bugs":{"url":"https://github.com/gl-modules/glsl-min-stream/issues"},"license":"MIT","homepage":"https://github.com/gl-modules/glsl-min-stream","keywords":["glsl","minification","stream"],"repository":{"url":"git://github.com/gl-modules/glsl-min-stream.git","type":"git"},"description":"through stream that transforms glsl-parser AST nodes and rewrites variables into shorter forms","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-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","readmeFilename":"README.md"}