{"id":22719276,"url":"https://github.com/carry0987/minifyjs","last_synced_at":"2026-04-17T00:33:10.630Z","repository":{"id":179886043,"uuid":"664277778","full_name":"carry0987/MinifyJS","owner":"carry0987","description":"This is a code minification tool based on Docker and Node.js, minifying JavaScript files with uglify-js, and operated by API requests","archived":false,"fork":false,"pushed_at":"2023-07-09T14:57:07.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T22:44:32.424Z","etag":null,"topics":["docker","docker-compose","javascript","minifier","nodejs","uglify-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/carry0987.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-09T13:29:12.000Z","updated_at":"2023-08-13T10:29:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b18ce8f2-3ad6-4252-960f-23eb4ee38b08","html_url":"https://github.com/carry0987/MinifyJS","commit_stats":null,"previous_names":["carry0987/minifyjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carry0987/MinifyJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FMinifyJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FMinifyJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FMinifyJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FMinifyJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carry0987","download_url":"https://codeload.github.com/carry0987/MinifyJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FMinifyJS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"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":["docker","docker-compose","javascript","minifier","nodejs","uglify-js"],"created_at":"2024-12-10T14:11:30.194Z","updated_at":"2026-04-17T00:33:10.584Z","avatar_url":"https://github.com/carry0987.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MinifyJS\nThis is a code minification tool based on Docker and Node.js, suitable for JavaScript files. The project leverages uglify-js library for file minification.\n\n## Features\n- Accepts JavaScript files through API for minification.\n- Outputs the minified files directly or saves them to a specific directory.\n- Configured with docker-compose as an easy deployment and for persistence.\n\n## Installation\n1. Download or clone this repository to your local machine.\n2. Navigate to the directory of the repository and run the `docker-compose up -d` command to create and start the service.\n\n## Usage\nSend the JavaScript file you wish to compress to `/compress` API, the file will be compressed accordingly and returned based on the request.\n\nFor example:\n```\ncurl -X POST -F 'file=@/path/to/your/js/file.js' \"http://localhost:3000/compress?request=file\"\n```\nIn this example, `request=file` means you wish to save the compressed JavaScript file to a specified `compressed` directory and return the metadata of the file. If you wish to return the content of compressed file directly, you can use `request=content` or completely ignore the `request` parameter.\n\nFor example:\n```\ncurl -X POST -F 'file=@/path/to/your/js/file.js' \"http://localhost:3000/compress?request=content\"\ncurl -X POST -F 'file=@/path/to/your/js/file.js' \"http://localhost:3000/compress\"\n```\n\n## Note\nIf no path is specified, files will be saved in the `compressed` directory.\n\n## License\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarry0987%2Fminifyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarry0987%2Fminifyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarry0987%2Fminifyjs/lists"}