1.4.0 • Published 9 months ago

minimize-js v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Minimize JS

Minimize your files without making a bundle

NPM npm.io

Table of contents

  1. Getting started
  2. Usage
  3. Contributors
  4. Need help
  5. License
  6. Sponsor

Getting started

To get started with this library, you need to install it and add it to your project.

Installation

Minimize JS is available as an npm package.

# npm
npm install minimize-js -D

# yarn
yarn add minimize-js -D

Options

 -w --minifyWhitespace     It only removes whitespace characters                     #default: true
 -i --minifyIdentifiers    It only transforms the identifiers                        #default: true
 -s --minifySyntax         It only transforms the syntax                             #default: true
 -d --minifyDeclaration    It only removes whitespace characters within .d.ts files  #default: false

Usage

The code snippet below shows how to put into action minimize-js and lets you minimize your files inside a directory.

minimize-js <directory> -<option> --<option>

Contributors

Any contribution is appreciated. You can get started with the steps below:

  1. Fork this repository (learn how to do this here).

  2. Clone the forked repository.

  3. Make your changes and create a pull request (learn how to do this).

  4. I will attend to your pull request and provide some feedback.

Need help?

Ping me on Twitter

License

This repository is licensed under the MIT License.

Sponsor

Don't be shy! 😜

:heart: Sponsor