{"id":36589327,"url":"https://github.com/logicsquad/minifier","last_synced_at":"2026-01-12T08:09:49.659Z","repository":{"id":57737392,"uuid":"324705385","full_name":"logicsquad/minifier","owner":"logicsquad","description":"Java-based minification for web resources.","archived":false,"fork":false,"pushed_at":"2024-11-10T03:49:41.000Z","size":160,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2024-11-10T04:18:01.746Z","etag":null,"topics":["java","minify","web"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logicsquad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-12-27T06:56:03.000Z","updated_at":"2024-11-10T03:50:18.000Z","dependencies_parsed_at":"2024-10-28T11:03:59.146Z","dependency_job_id":"91f4aac2-5a92-421b-a05c-ebaa21a173f9","html_url":"https://github.com/logicsquad/minifier","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/logicsquad/minifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fminifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fminifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fminifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fminifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicsquad","download_url":"https://codeload.github.com/logicsquad/minifier/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fminifier/sbom","scorecard":{"id":597307,"data":{"date":"2025-08-11","repo":{"name":"github.com/logicsquad/minifier","commit":"ddb9ea20d99f415b0c36774ade71ca2ae2bffb82"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/minifier/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/minifier/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/minifier/deploy.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/minifier/deploy.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/minifier/deploy.yml/develop?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/deploy.yml:8"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T23:27:38.244Z","repository_id":57737392,"created_at":"2025-08-20T23:27:38.244Z","updated_at":"2025-08-20T23:27:38.244Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["java","minify","web"],"created_at":"2026-01-12T08:09:46.089Z","updated_at":"2026-01-12T08:09:49.654Z","avatar_url":"https://github.com/logicsquad.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/logicsquad/minifier/workflows/build/badge.svg)\n[![License](https://img.shields.io/badge/License-BSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause)\n\nMinifier\n========\n\nWhat is this?\n-------------\nThis project provides Java classes to do one thing: safely \"minify\"\nweb resources. The key word is \"safely\": the aim is _not_ to produce\nmaximal size reduction, nor introduce any morphological changes, but\nto provide _reasonable_ file size reduction in most cases.\n\nAt launch, we will provide classes to minify Javascript and CSS.\n\nGetting started\n---------------\nThere are two minifier classes:\n\n* `CSSMinifier` for CSS; and\n* `JSMinifier` for Javascript.\n\nThey both implement `Minifier`, which declares a single method:\n\n    void minify(Writer writer) throws MinificationException;\n\nFurther, they both extend `AbstractMinifier`, which provides a\nconstructor taking a `Reader` object. So you need a `Reader` and a\n`Writer` to minify a resource, and that's it. For example:\n\n    Reader input = new FileReader(\"basic.css\");\n    Writer output = new FileWriter(\"basic-min.css\");\n    Minifier min = new CSSMinifier(input);\n    try {\n        min.minify(output);\n    } catch (MinificationException e) {\n        // Handle exception\n    }\n\nAnd that's it. A `MinificationException` will usually wrap some _other_\nexception, such as `CSSMinifier.UnterminatedCommentException`. If you\nneed to know why minification failed, you can call `getCause()` on the\nexception you catch.\n\nUsing Minifier\n--------------\nYou can use Minifier in your projects by including it as a Maven\ndependency:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003enet.logicsquad\u003c/groupId\u003e\n      \u003cartifactId\u003eminifier\u003c/artifactId\u003e\n      \u003cversion\u003e1.3\u003c/version\u003e\n    \u003c/dependency\u003e\n\nIf you're building a Maven project, and just want to minify project\nresources during the build, check out [Minifier Maven Plugin](https://github.com/logicsquad/minifier-maven-plugin),\nwhich uses Minifier to do the work.\n\nContributing\n------------\nBy all means, open issue tickets and pull requests if you have something\nto contribute.\n\nReferences\n----------\nJavascript minification is based on Douglas Crockford's [original\nC-based JSMin](https://github.com/douglascrockford/JSMin), via a\n[translation from C to\nJava](https://github.com/galan/packtag/blob/master/packtag-core/src/main/java/net/sf/packtag/implementation/JSMin.java)\nby John Reilly. Code from these projects is used here under license.\n\nCSS minification is based on the\n[CSSMin](https://github.com/barryvan/CSSMin) project by Barry van\nOudtshoorn. Code from this project is used here under license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicsquad%2Fminifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicsquad%2Fminifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicsquad%2Fminifier/lists"}