All Projects β†’ Josee9988 β†’ MinifyAllCli

Josee9988 / MinifyAllCli

Licence: BSD-3-Clause license
πŸ“¦ A lightweight, simple and easy npm tool to π—Ίπ—Άπ—»π—Άπ—³π˜† JSON/C, HTML and CSS! Also known as MinifyAll core! ⭐ Usable as π‘ͺ𝑳𝑰 tool or π’Šπ’Žπ’‘π’π’“π’•π’‚π’ƒπ’π’† in TS/JS as a 𝑴𝑢𝑫𝑼𝑳𝑬 πŸ₯°

Programming Languages

typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to MinifyAllCli

MinifyAll
A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
Stars: ✭ 54 (+157.14%)
Mutual labels:  minify, minimization, minification, minifier, minify-css, minify-html
imagemin-power-cli
Optimize (compress) images with power using imagemin πŸ’ͺ
Stars: ✭ 13 (-38.1%)
Mutual labels:  minify, minification, minifier
react-multi-context
Manage multiple React 16 contexts with a single component.
Stars: ✭ 19 (-9.52%)
Mutual labels:  npm-package, npm-module, npmjs
Forge Node App
πŸ› πŸ“¦πŸŽ‰ Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (+328.57%)
Mutual labels:  npm-package, npm-module, cli-app
packtag
A JSP Taglib for delivering minified, combined and gzip-compressed resources (JavaScript and CSS).
Stars: ✭ 22 (+4.76%)
Mutual labels:  minify, minification
kirby-html-minifier
Minify the html output of a site built with Kirby CMS
Stars: ✭ 20 (-4.76%)
Mutual labels:  minify, minify-html
intersection-wasm
Mesh-Mesh and Triangle-Triangle Intersection tests based on the algorithm by Tomas Akenine-MΓΆller
Stars: ✭ 17 (-19.05%)
Mutual labels:  npm-package, npm-module
Instapack
All-in-one TypeScript and Sass compiler for web applications! πŸ“¦ πŸš€
Stars: ✭ 131 (+523.81%)
Mutual labels:  minify, client-side
Unsplash Wallpaper
Use an image from unsplash.com as your background image from a simple command.
Stars: ✭ 238 (+1033.33%)
Mutual labels:  npm-package, cli-app
Webmarkupmin
The Web Markup Minifier (abbreviated WebMarkupMin) - a .NET library that contains a set of markup minifiers. The objective of this project is to improve the performance of web applications by reducing the size of HTML, XHTML and XML code.
Stars: ✭ 312 (+1385.71%)
Mutual labels:  minify, minification
arcscord
A Discord library written in typescript
Stars: ✭ 18 (-14.29%)
Mutual labels:  npm-package, npm-module
vbsmin
VBScript minifier
Stars: ✭ 19 (-9.52%)
Mutual labels:  minify, minifier
postcss-clean
PostCss plugin to minify your CSS with clean-css
Stars: ✭ 41 (+95.24%)
Mutual labels:  minify, minification
Minify
Go minifiers for web formats
Stars: ✭ 2,824 (+13347.62%)
Mutual labels:  minify, minifier
Singlespotify
🎡 Create Spotify playlists based on one artist through the command line
Stars: ✭ 254 (+1109.52%)
Mutual labels:  npm-package, npm-module
Minify
CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
Stars: ✭ 1,710 (+8042.86%)
Mutual labels:  minify, minifier
Image Shrinker
App for macOS. Minify your images and graphics with just one drop. Autorenamed in the same place where it comes from. Immediately!
Stars: ✭ 217 (+933.33%)
Mutual labels:  minify, minification
fetch-action-creator
Fetches using standardized, four-part asynchronous actions for redux-thunk.
Stars: ✭ 28 (+33.33%)
Mutual labels:  npm-module, npmjs
Ts ci
βœ… Continuous integration setup for TypeScript projects via GitHub Actions.
Stars: ✭ 225 (+971.43%)
Mutual labels:  npm-package, npm-module
Terminal Image Cli
Display images in the terminal
Stars: ✭ 234 (+1014.29%)
Mutual labels:  npm-package, cli-app

MinifyAll CLI

A simple package to minify your web code, you will love its simplicity!

With MinifyAll you will be able to minify .html, .css, .json and .jsonc directly from the CLI. It also supports minifying an entire directory recursively (finding the available file extensions), you could also change the suffix of the new minified file (by default "-min"), toggle the minimization of RGB/HEX values, preserve license comments and much more!

Use it as a CLI command or as a normal package!

MinifyAll uses regex as its main and only minimization tool, that will lead to impressive minify times compared to other minifiers that deeply analyze the code.

Check the website or the original VSCode extension.

Version Downloads Vulnerabilities npm bundle size (scoped version) DeepScan grade Node.js CI


Languages available πŸ§ͺπŸ”₯

  • HTML
  • CSS
  • JSON
  • JSONC

Installation

Global installation

npm i @josee9988/minifyall --save-dev # install the package globally

Package installation

npm i @josee9988/minifyall --save # install the package in your project

Usage

CLI usage

minifyall --help or minifyall --help will output:

MinifyAllCli v1.2.2

Usage: minifyall [file] [options]

Global options:

-h, --help              Output usage information. (will ignore any other arguments)
-v, --version           Output package version. (will ignore any other arguments)
-m, --minify-hex                Will minify the hexadecimal color values. (default = false)
-s, --suffix            Append a suffix string to the minified filename
-o, --output            The new output file (will ignore "--suffix" argument)
-d, --dir               Will recursively look for HTML/CSS/JSON files inside a directory and will minify every one (will ignore "--output" argument)

Examples of use:
minifyall --help
minifyall --version
minifyall myFile.css
minifyall pathToMyFile/dirs/myFile.css
minifyall myFile.css -m -s .min
minifyall myFile.css --minify-hex -s -minified
minifyall myFile.css --output someFolder/myNewFile.css
minifyall --dir myFolder/

For more information visit: https://github.com/Josee9988/MinifyAllCli

Package usage

  1. Import the package.

    import {MinifyAllClass} from '@josee9988/minifyall'; // import it
  2. Initialize the minifier.

    const minifyall: MinifyAllClass = new MinifyAllClass(false); // initialize the class (true for minifying color values such as HEXADECIMAL/RGB/RGBA)
  3. Use the minifier by passing the function your array of strings (: string[]) with your non minified code.

    const minifiedHtmlCode: string = minifyall.minifyHtml(HTMLNotMinified); // html
    const minifiedCssCode: string = minifyall.minifyCssScssLessSass(CSSNotMinified); // css
    const minifiedJsonCode: string = minifyall.minifyJsonJsonc(JSONNotMinified); // json/c

Built with


Contributing

This project is actively looking for new contributors to develop new functions, maintain and improve the project. If you are interested make sure to fork the project and pull-request your improvements to be added as a contributor!


Made with a lot of ❀️❀️ by @Josee9988

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].