1.3.2 • Published 1 year ago
ugly-code v1.3.2
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.
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
License
MIT. See LICENSE.md for details.