{"_id":"glsl-min-stream","_rev":"770262","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":"chrisdickinson","email":"chris@neversaw.us"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2024-06-30T15:39:24.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":"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":{},"publish_time":1404599644049,"_cnpm_publish_time":1404599644049},"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","tarball":"http://registry-npm.ywwl.com/glsl-min-stream/download/glsl-min-stream-0.0.2.tgz","integrity":"sha512-onJdG4ec+81uoH6kbNggoyz+5tsUPXvW1pcsmHninSGH8Fg6HziiCsFdG8vsco6hDxWeTBSgcwwi7nSnZPfpiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0juvFWo8hxutIJDLGvFMZ4NO6rqaLxWUvrvCY0klw/AiEA4eAj0Saa9Fmtio3v2hgEQ4Hdd67+iMqaU1uhXR4Y5d8="}],"size":1537,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-0.0.2.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"directories":{},"publish_time":1353803195757,"_cnpm_publish_time":1353803195757},"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","tarball":"http://registry-npm.ywwl.com/glsl-min-stream/download/glsl-min-stream-0.0.1.tgz","integrity":"sha512-lQlU5GoF4PMIEyPnBNxl5B9CQH/mzSdohodthoihORz2jHSJ+7rtS+DkE5c9P5mTQjtB104Lr01iKRjejbniGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC/4FHVJe6R5v9y3/jR9gqeJJyP/C06zk+3Yjw9gJ4QwIhAL08Vu1vmZwU9j2cZZz5w+U+/JsuOXRgWnd2SxSPk+E2"}],"size":1531,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-0.0.1.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"directories":{},"publish_time":1353800521322,"_cnpm_publish_time":1353800521322},"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","tarball":"http://registry-npm.ywwl.com/glsl-min-stream/download/glsl-min-stream-0.0.0.tgz","integrity":"sha512-tmeuvRn+rmhggXEPHtnahiLvg2xBjZRjXigce3Ss0mXZ8krvLek8AQqYph2ovHK1l14fk5t0opoZrrPr+JfoNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4+HicDIClJ1USiFdgbD+cWJaF4V5MPuDiZ92KnbAEeAiEA2FHfQK7poRMHeparzhvZlb6CAmxAnovUcusord06QzQ="}],"size":1530,"noattachment":false,"key":"/glsl-min-stream/-/glsl-min-stream-0.0.0.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"directories":{},"publish_time":1353796796779,"_cnpm_publish_time":1353796796779}},"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"}