Have ideas to improve npm?Join in the discussion! »

    pc__replace_call_chain

    0.0.1 • Public • Published

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

    Install

    npm i pc__replace_call_chain

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • avatar