{"id":16162064,"url":"https://github.com/peterdavehello/web-minify-helper","last_synced_at":"2025-03-18T22:30:53.483Z","repository":{"id":15715137,"uuid":"18453185","full_name":"PeterDaveHello/web-minify-helper","owner":"PeterDaveHello","description":"Help web developer to make their js \u0026 css files minified easily!","archived":false,"fork":false,"pushed_at":"2023-01-19T21:03:09.000Z","size":36,"stargazers_count":14,"open_issues_count":14,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T12:31:09.724Z","etag":null,"topics":["css","hacktoberfest","js","minify","shell","web"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterDaveHello.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-04T21:24:26.000Z","updated_at":"2024-08-02T02:19:14.000Z","dependencies_parsed_at":"2023-02-11T21:16:30.276Z","dependency_job_id":null,"html_url":"https://github.com/PeterDaveHello/web-minify-helper","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/PeterDaveHello%2Fweb-minify-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fweb-minify-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fweb-minify-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fweb-minify-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterDaveHello","download_url":"https://codeload.github.com/PeterDaveHello/web-minify-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950911,"owners_count":20373663,"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":["css","hacktoberfest","js","minify","shell","web"],"created_at":"2024-10-10T02:28:58.318Z","updated_at":"2025-03-18T22:30:53.202Z","avatar_url":"https://github.com/PeterDaveHello.png","language":"Shell","readme":"# Web minify helper!\n\n[![Gitter chat](https://badges.gitter.im/PeterDaveHello/web-minify-helper.svg)](https://gitter.im/PeterDaveHello/web-minify-helper)\n[![dependencies Status](https://david-dm.org/PeterDaveHello/web-minify-helper/status.svg)](https://david-dm.org/PeterDaveHello/web-minify-helper)\n\nLet me help you minify css and js files automatically and easily!\n\nThis is only a shell script; it depends on bash shell, grep, curl and nodejs/npm.\n\nIt is based on [clean-css](https://github.com/jakubpawlowicz/clean-css), [uglify-js](https://github.com/mishoo/UglifyJS2) and [javascript-minifier.com](https://javascript-minifier.com)/[cssminifier.com](https://cssminifier.com).\n\nFeel free to contribute to the project if you want!\n\n## Requirements\n\n- Bash shell\n- grep\n- curl\n- Node.js \u003e= (4.0)\n\n## How to use?\n\n```sh\n$ git clone --recursive https://github.com/PeterDaveHello/web-minify-helper.git\n$ cd web-minify-helper\n$ npm install\n```\n\nFirst go to the target directory you want to minify, then run the script(`path_of_script/minify.sh`). Or you can pass the directory's path as a parameter to the script!\n\nYou may even place the script file (or make a link to it) under the `$HOME/bin` directory, allowing you to conveniently run this script from any directory!\n\n## Explanation\n\nThe script will scan all the directories under the current working directory, except path with '.git'.\n\nThen, it will check all the js \u0026 css files to see if they already have a minified version (currently, it recognizes it by looking for a `.min` in the filename, before the file extension).\n\nIf the file does not have a minified version, it will minify it.\n\nFurthermore, even if there is a minified version available, the script will compare the last modified time between the original file and its minified version. If the original one is newer than the minified one -- which means the minified file is older than the original -- then it will replace the old minified file with a new minified version!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fweb-minify-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdavehello%2Fweb-minify-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fweb-minify-helper/lists"}