1.3.2 • Published 1 year ago

ugly-code v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NPM downloads NPM total downloads

 Donate  Your help is appreciated! Create a PR or just buy me a coffee

Ugly-Code

Ugly-Code helps hide the code you don't want to see, obfuscate the code in the deployment environment through a simple CLI in the build environment, and make it less recognizable to others. you can do this easily via demo.js file in node_modules/ugly-code. you are able to minify all files in a specific folder.

NPM


Table of Contents

Installation

Install with npm:

$ npm i ugly-code

Examples

// index.js
const minifyAll = require('ugly-code');

/**
 * @param1 - Type the folder name you want to change all files inside.
 * @param2 - Type the folder name you never want to change all files inside.
 * @functions - minifyAll(minifyFolder, noMinifyFolder)
 */

// Example 1
minifyAll('../test/', 'lib');

// Example 2
minifyAll(process.argv.slice(2)[0], process.argv.slice(2)[1]);

Changelog

Changelog

License

MIT. See LICENSE.md for details.