0.0.1 • Published 8 years ago
pc__replace_call_chain v0.0.1
Replace words in JS
This is plugin for nmp-package "Post-Compression".
He`s searching for and collects chains of calls methods in one line in the JS code.
An example of using:
var replaceCallChain = require("pc__replace_call_chain");
gulp.src("./*.js")
.pipe(postCompression.replace([
replaceCallChain()
]));
An example of JS code before:
this.methodA();
this.methodB();
this.methodC();
An example of JS code after:
this.methodA().methodB().methodC();
0.0.1
8 years ago