glsl-transition-minify
v0.3.1
Published
Minify a GLSL Transition
Downloads
3
Readme
glsl-transition-minify
Minify a GLSL Transition.
As a Module
npm install glsl-transition-minify
var minify = require("glsl-transition-minify");
var minifiedStream = minify(process.stdin);
minifiedStream.pipe(process.stdout);
As a Command Line
npm install -g glsl-transition-minify
CLI usage
cat transition.glsl | glsl-transition-minify > minified.glsl
or alternatively:
glsl-transition-minify -i transition.glsl -o minified.glsl
Server usage
glsl-transition-minify -s 10101
then in another shell:
curl -X POST -d 'void main () { float abcdef = 1.000; }' http://localhost:10101/compile
# value returned:
void main(){float a=1.;}