Gulp module to trim private methods/properties in JS files.
gulp-trim-fn
Introduction
gulp-trim-fn is a small gulp module that obfuscates private functions/properties (with "_"-prefix in their names) in js files (babel-generated code is supported) in order to protect your code.
Installation
npm install gulp-trim-fn --save-dev
Usage
const gulp = ;const trimFn = ; gulp;
Example
Before:
{}SideBarprototype = { var data = this; documentbodyinnerHTML = this; } {} {} {}
After:
{}SideBarprototype = { var data = this; documentbodyinnerHTML = this; } {} {} {}
Authors and Contributors
Created in 2016 by Ruslan Prytula (@milworm).