{"id":15007642,"url":"https://github.com/josee9988/minifyallcli","last_synced_at":"2025-10-30T11:31:49.401Z","repository":{"id":42694663,"uuid":"263385404","full_name":"Josee9988/MinifyAllCli","owner":"Josee9988","description":"📦 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 𝑴𝑶𝑫𝑼𝑳𝑬 🥰","archived":false,"fork":false,"pushed_at":"2023-02-03T11:23:26.000Z","size":1198,"stargazers_count":25,"open_issues_count":15,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T08:12:00.071Z","etag":null,"topics":["cli","cli-app","client-project","client-side","css","html","json","minification","minifier","minifier-css","minifiers","minify","minify-css","minify-html","minify-json","minifying","minimization","npm-module","npm-package","npmjs"],"latest_commit_sha":null,"homepage":"https://minifyall.jgracia.es/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Josee9988.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null},"funding":{"github":"Josee9988","custom":["https://www.paypal.me/josee9988"]}},"created_at":"2020-05-12T16:04:09.000Z","updated_at":"2024-08-29T01:36:26.000Z","dependencies_parsed_at":"2023-02-18T06:15:28.669Z","dependency_job_id":null,"html_url":"https://github.com/Josee9988/MinifyAllCli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FMinifyAllCli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FMinifyAllCli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FMinifyAllCli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FMinifyAllCli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Josee9988","download_url":"https://codeload.github.com/Josee9988/MinifyAllCli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238960630,"owners_count":19559310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-app","client-project","client-side","css","html","json","minification","minifier","minifier-css","minifiers","minify","minify-css","minify-html","minify-json","minifying","minimization","npm-module","npm-package","npmjs"],"created_at":"2024-09-24T19:12:58.533Z","updated_at":"2025-10-30T11:31:48.907Z","avatar_url":"https://github.com/Josee9988.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Josee9988","https://www.paypal.me/josee9988"],"categories":[],"sub_categories":[],"readme":"# **MinifyAll CLI**\n\nA simple package to minify your web **code**, _you will love its simplicity_!\n\nWith MinifyAll you will be able to minify **.html**, **.css**, **.json** and **.jsonc** directly from the CLI.\nIt also supports **minifying an entire directory recursively** (finding the available file extensions),\nyou could also change the **suffix** of the new minified file (by default \"-min\"),\ntoggle the minimization of **RGB**/**HEX** values, preserve license comments and _much more_! \n\nUse it as a **CLI command** or as a **normal package**!\n\nMinifyAll 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.\n\nCheck the **[website](https://minifyall.jgracia.es/)** or the original **[VSCode extension](https://github.com/Josee9988/MinifyAll)**.\n\n[![Version](https://badge.fury.io/js/%40josee9988%2Fminifyall.svg)](https://www.npmjs.com/package/@josee9988/minifyall)\n[![Downloads](https://img.shields.io/npm/dt/@josee9988/minifyall.svg)](https://www.npmjs.com/package/@josee9988/minifyall)\n[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@josee9988/minifyall)](https://www.npmjs.com/package/@josee9988/minifyall)\n[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@josee9988/minifyall/1.0.0)](https://www.npmjs.com/package/@josee9988/minifyall)\n[![DeepScan grade](https://deepscan.io/api/teams/9121/projects/11596/branches/173509/badge/grade.svg)](https://deepscan.io/dashboard/#view=project\u0026tid=9121\u0026pid=11596\u0026bid=173509)\n[![Node.js CI](https://github.com/Josee9988/MinifyAllCli/workflows/Node.js%20CI/badge.svg)](https://github.com/Josee9988/MinifyAllCli/actions)\n\n---\n\n## **Languages available** 🧪🔥\n\n- **HTML**\n- **CSS**\n- **JSON**\n- **JSONC**\n\n---\n\n## **Installation**\n\n  ### **Global installation**\n\n```bash\nnpm i -g @josee9988/minifyall # install the package globally\n```\n\n  ### **Package installation**\n  \n  ```bash\n  npm i @josee9988/minifyall --save # install the package in your project\n  ```\n\n---\n\n## **Usage**\n\n### **CLI usage**\n  \n**`minifyall --help`** or **`minifyall --help`** will output:\n  \n  ```\nMinifyAllCli v1.2.2\n\nUsage: minifyall [file] [options]\n\nGlobal options:\n\n  -h, --help              Output usage information. (will ignore any other arguments)\n  -v, --version           Output package version. (will ignore any other arguments)\n  -m, --minify-hex                Will minify the hexadecimal color values. (default = false)\n  -s, --suffix            Append a suffix string to the minified filename\n  -o, --output            The new output file (will ignore \"--suffix\" argument)\n  -d, --dir               Will recursively look for HTML/CSS/JSON files inside a directory and will minify every one (will ignore \"--output\" argument)\n\nExamples of use:\n  minifyall --help\n  minifyall --version\n  minifyall myFile.css\n  minifyall pathToMyFile/dirs/myFile.css\n  minifyall myFile.css -m -s .min\n  minifyall myFile.css --minify-hex -s -minified\n  minifyall myFile.css --output someFolder/myNewFile.css\n  minifyall --dir myFolder/\n\nFor more information visit: https://github.com/Josee9988/MinifyAllCli\n  ```\n\n### **Package usage**\n  \n1. Import the package.\n  \n      ```typescript\n    import {MinifyAllClass} from '@josee9988/minifyall'; // import it\n      ```\n\n2. Initialize the minifier.\n  \n    ```typescript\n    const minifyall: MinifyAllClass = new MinifyAllClass(false); // initialize the class (true for minifying color values such as HEXADECIMAL/RGB/RGBA)\n    ```\n    \n3. Use the minifier by passing the function your array of strings (: string[]) with your non minified code.\n    \n    ```typescript\n    const minifiedHtmlCode: string = minifyall.minifyHtml(HTMLNotMinified); // html\n    const minifiedCssCode: string = minifyall.minifyCssScssLessSass(CSSNotMinified); // css\n    const minifiedJsonCode: string = minifyall.minifyJsonJsonc(JSONNotMinified); // json/c\n    ```\n\n---\n\n## **Built with**\n\n* [WebStorm](https://www.jetbrains.com/webstorm/)\n* [TypeScript](https://www.typescriptlang.org/)\n* [npm](https://www.npmjs.com/)\n* [Github](https://github.com/Josee9988)\n\n---\n\n## **Contributing**\n\nThis project is actively looking for new contributors to develop new functions, maintain and improve the project.\nIf you are interested make sure to fork the project and pull-request your improvements to be added as a contributor!\n\n---\n\n_Made with a lot of ❤️❤️ by **[@Josee9988](https://github.com/Josee9988)**_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosee9988%2Fminifyallcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosee9988%2Fminifyallcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosee9988%2Fminifyallcli/lists"}