{"id":39229482,"url":"https://github.com/jadiagaurang/minify-all-cli","last_synced_at":"2026-01-17T23:39:38.599Z","repository":{"id":40397851,"uuid":"469840354","full_name":"jadiagaurang/minify-all-cli","owner":"jadiagaurang","description":"Minify All JS, CSS and HTML files in a folder by using UglifyJS/terser, CSSNano and HTMLMinifier with an option to gzip all the files as well.","archived":false,"fork":false,"pushed_at":"2022-05-11T01:53:55.000Z","size":14993,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-24T21:25:48.803Z","etag":null,"topics":["cli","command-line","command-line-tool","compression","cssnano","google","htmlminify","lighthouse","minify","pagespeed","terser","uglifyjs","uglifyjs-folder"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jadiagaurang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-14T17:35:54.000Z","updated_at":"2024-12-11T10:42:20.000Z","dependencies_parsed_at":"2022-08-09T19:20:15.119Z","dependency_job_id":null,"html_url":"https://github.com/jadiagaurang/minify-all-cli","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/jadiagaurang/minify-all-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadiagaurang%2Fminify-all-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadiagaurang%2Fminify-all-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadiagaurang%2Fminify-all-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadiagaurang%2Fminify-all-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jadiagaurang","download_url":"https://codeload.github.com/jadiagaurang/minify-all-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadiagaurang%2Fminify-all-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28522311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","command-line","command-line-tool","compression","cssnano","google","htmlminify","lighthouse","minify","pagespeed","terser","uglifyjs","uglifyjs-folder"],"created_at":"2026-01-17T23:39:37.935Z","updated_at":"2026-01-17T23:39:38.593Z","avatar_url":"https://github.com/jadiagaurang.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minify All CLI\n\n[![Node.js CI](https://github.com/jadiagaurang/minify-all-cli/actions/workflows/node.js.yml/badge.svg)](https://github.com/jadiagaurang/minify-all-cli/actions/workflows/node.js.yml)\n[![Node.js Package](https://github.com/jadiagaurang/minify-all-cli/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/jadiagaurang/minify-all-cli/actions/workflows/npm-publish.yml)\n[![NPM Downloads](https://img.shields.io/npm/dw/minify-all-cli)](https://www.npmjs.com/package/minify-all-cli)\n\nMinify All JS, CSS and HTML files in a folder by using [UglifyJS](https://github.com/mishoo/UglifyJS), [CSSNano](https://github.com/cssnano/cssnano) and [HTMLMinifier](https://github.com/kangax/html-minifier) with an option to gzip all the files as well.\n\nPackage also supports processCount to set maximum degree of parallelism.\n\n## Motivation\n\nGoogle PageSpeed Insights suggests to [Minify Resources (HTML, CSS, and JavaScript)](https://developers.google.com/speed/docs/insights/MinifyResources) to boost web page's loading speed.\n\n## Installation\n\n```bash\nnpm install -g minify-all-cli\n```\n\n## Command Line Usage\n\n```bash\nminify-all-cli -s [source folder] -d [destination folder] [options]\n```\n\n### Command Line Options\n\n```bash\nUsage: -s \u003csource\u003e -d \u003cdestination\u003e\n\nOptions:\n      --help                Show help                                       [boolean]\n      --version             Show version number                             [boolean]\n  -j, --skipJS              Should minify JavaScript the file or skip it?   [boolean]\n  -c, --skipCSS             Should minify CSS the file or skip it?          [boolean]\n  -h, --skipHTML            Should minify HTML the file or skip it?         [boolean]\n  -g, --doGzip              Should gzip the file or skip it?                [boolean]\n  -x, --jsCompressor        Which JavaScript mangler/compressor to use for\n                            minification? Default: uglifyjs                 [string]\n  -m, --skipFileMasks       Partial Filder Path to skip minification        [array]\n  -e, --skipFileExtensions  File Extensions to skip it over                 [array]\n  -i, --ignoreFileMasks     Partial Filder Path to ignore minification and\n                            copy to destination                             [array]\n  -f, --configFile          Specifies a json configuration file for the\n                            UglifyJS/terser, CSSNano and HTML Minifier \n                            module                                          [string]\n  -l, --logLevel            Set log level to print warn, log, error, fatal\n                            messages                                        [string]\n  -p, --processCount        Specifies process count to set maximum degree\n                            of parallelism                                  [number]\n```\n\n## CLI Example\n\n```bash\nnpx minify-all-cli \\\n-s \"/home/ubuntu/source\" -d \"/home/ubuntu/compressed\" \\\n--skipFileExtensions=.mp3 --skipFileExtensions=.mp4 \\\n--logLevel=warn\n```\n\nAll other examples are available [here](https://github.com/jadiagaurang/minify-all-cli/tree/main/tests).\n\n## License\n\nPlease see the [license file](https://github.com/jadiagaurang/minify-all-cli/blob/main/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadiagaurang%2Fminify-all-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjadiagaurang%2Fminify-all-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadiagaurang%2Fminify-all-cli/lists"}