0.0.1 • Published 8 years ago

pc__replace_call_chain v0.0.1

Weekly downloads
5
License
-
Repository
github
Last release
8 years ago

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();