minimize-js
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Minimize JS

Minimize your files without making a bundle

NPM

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! 😜

❤️ Sponsor

Package Sidebar

Install

npm i minimize-js

Weekly Downloads

102

Version

1.4.0

License

MIT

Unpacked Size

41.3 kB

Total Files

10

Last publish

Collaborators

  • randagio13