{"id":37023325,"url":"https://github.com/argius/minestra","last_synced_at":"2026-01-14T02:47:57.886Z","repository":{"id":34835989,"uuid":"38824709","full_name":"argius/minestra","owner":"argius","description":"A small utilities library for Java 8 and later.","archived":false,"fork":false,"pushed_at":"2020-01-27T15:31:10.000Z","size":727,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-12-12T09:18:23.121Z","etag":null,"topics":["collection","java","library","utilities"],"latest_commit_sha":null,"homepage":"http://argius.github.io/minestra/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/argius.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":"2015-07-09T14:18:48.000Z","updated_at":"2020-01-27T15:31:12.000Z","dependencies_parsed_at":"2022-08-27T12:11:40.891Z","dependency_job_id":null,"html_url":"https://github.com/argius/minestra","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/argius/minestra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argius%2Fminestra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argius%2Fminestra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argius%2Fminestra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argius%2Fminestra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/argius","download_url":"https://codeload.github.com/argius/minestra/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argius%2Fminestra/sbom","scorecard":{"id":206312,"data":{"date":"2025-08-11","repo":{"name":"github.com/argius/minestra","commit":"40d008be6990e01cc2729d674aadf0eec739608d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":-1,"reason":"No tokens found","details":null,"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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0-beta2 not signed: https://api.github.com/repos/argius/minestra/releases/3674508","Warn: release artifact v1.0.0-beta2 does not have provenance: https://api.github.com/repos/argius/minestra/releases/3674508"],"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'","Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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-16T23:52:33.763Z","repository_id":34835989,"created_at":"2025-08-16T23:52:33.763Z","updated_at":"2025-08-16T23:52:33.763Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["collection","java","library","utilities"],"created_at":"2026-01-14T02:47:57.177Z","updated_at":"2026-01-14T02:47:57.874Z","avatar_url":"https://github.com/argius.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Minestra\n========\n[![Build Status](https://travis-ci.org/argius/minestra.png)](https://travis-ci.org/argius/minestra)\n\nMinestra is a small utilities library for Java8 and later.\n\n\nThe word 'minestra' means soup in Italian. I love soups and there is no particular meaning for this name.\n\n\nSee \"Examples\" section if you want to know more about features in this library.\n\n* Minestra has been compiled with compact1 profile.\n\n\nsite: http://argius.github.io/minestra/\n\n\nDependency\n----------\n\nYou can download Minestra from Maven Central.\n\nMvnRepository URL:  https://mvnrepository.com/artifact/net.argius/minestra\n\n\n - Maven\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003enet.argius\u003c/groupId\u003e\n    \u003cartifactId\u003eminestra\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n - Gradle\n\n```\n    compile 'net.argius:minestra:1.2.1'\n```\n\n\n\nExamples\n--------\n\nSee also test classes.\n\n\n\n### ImmArray\n\nThe classes of `ImmArray` are mere array wrappers and provides functional operations without functional DSL.\nNeither pipeline nor any performance improvement strategies.\n\n```\n// import java.util.*;\n// import minestra.collection.*;\n\nImmArray\u003cString\u003e a = ImmArray.of(Arrays.asList(\"1\"), Optional.of(\"2\"), ImmArray.of(\"3\", \"A\"),\n    Optional.empty(), Arrays.asList(\"5\"), \"B\", Stream.of(\"6\", \"7\"))\n    .flatten();\nfor (String s : a) {\n    System.out.printf(\"%s, \", s);\n}\n// =\u003e 1, 2, 3, A, 5, B, 6, 7,\n```\n\n```\n// import java.util.*;\n// import java.util.stream.*;\n// import minestra.collection.*;\n\nList\u003cString\u003e list1 = IntStream.of(1, 2, 3).mapToObj(x -\u003e \"#\" + x).collect(Collectors.toList());\nList\u003cString\u003e list2 = IntImmArray.of(1, 2, 3).mapToObj(x -\u003e \"#\" + x).toList();\n```\n\n\n### PathIterator and PathFilter\n\n`PathIterator` is an iterator which walks through a file tree like `Files.find()`.\n`PathFilter` is a filter-generator for filtering objects of `java.nio.file.Path`.\n\n```\n// import java.time.*;\n// import java.nio.file.*;\n// import minestra.file.*;\n\nPredicate\u003cPath\u003e filter1 = PathFilter.sizeGT(100 * 1024L); // file size is larger than 100KB\nPredicate\u003cPath\u003e filter2 = PathFilter.mtimeBetween(\n    Instant.parse(\"2017-04-01T00:00:00Z\"), Instant.parse(\"2018-03-31T23:59:59Z\")\n); // mtime is between 2017-04-01 and 2018-03-31T23:59:59 (UTC)\nPredicate\u003cPath\u003e filter3 = filter1.and(filter2);\nPathIterator.streamOf(Paths.get(\"/tmp\"))\n    .filter(filter3)\n    .forEach(System.out::println);\nfor (Path x : PathIterator.of(Paths.get(\"/tmp\"))) {\n    if (filter3.test(x)) {\n        System.out.println(x);\n    }\n}\n```\n\n\n### PathString\n\n`PathString` is an extension of `java.nio.file.Path` .\n\n```\n// import minestra.file.PathString;\n\nPathString path1 = PathString.of(\"/tmp/file.dat\");\nSystem.out.println(path1.extension()); // =\u003e Optional[dat]\nPathString path2 = PathString.of(\"/tmp/file\");\nSystem.out.println(path2.extension()); // =\u003e Optional.empty\n```\n\n\n### LetterCaseConverter\n\n`LetterCaseConverter` is a letter-case converter.\n\n```\n// import java.util.Arrays;\n// import minestra.text.*;\n\nString[] a = {\n    LetterCaseConverter.capitalize(\"hello\"),\n    LetterCaseConverter.uncapitalize(\"World\"),\n    LetterCaseConverter.toCamelCase(\"read_all_files\"),\n    LetterCaseConverter.toPascalCase(\"forget-me-not\"),\n    LetterCaseConverter.toSnakeCase(\"CaseConverter\"),\n    LetterCaseConverter.toChainCase(\"toString\")};\nSystem.out.println(Arrays.toString(a));\n\n// =\u003e [Hello, world, readAllFiles, ForgetMeNot, case_converter, to-string]\n```\n\n\n### PropsRef, ResourceSheaf\n\n`PropsRef` provides access to Properties.\n`ResourceSheaf` is similar to `ResourceBundle`, and provides access to message resources.\n\n```\n// import java.util.*;\n// import minestra.text.*;\n\n// resource file:\n// minestra/messages_en\n//   key1=en\n// minestra/messages\n//   key1=no-suffix\n//   key2=MSG\nResourceSheaf res = ResourceSheaf.create(getClass()).withLocation(\"minestra/\").withMessages().withLocales(Locale.ENGLISH);\nProperties props = new Properties();\nprops.setProperty(\"key1\", \"A\");\nprops.setProperty(\"key2\", \"B\");\nprops.setProperty(\"key3\", \"C\");\nPropsRef pr = PropsRef.aggregate(res, PropsRef.wrap(props));\npr.getProperty(\"key1\"); // =\u003e en\npr.string(\"key1\"); // =\u003e en\npr.string(\"key2\"); // =\u003e MSG\npr.string(\"key3\"); // =\u003e C\n```\n\n\n\nLicense\n-------\n\nApache 2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargius%2Fminestra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fargius%2Fminestra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargius%2Fminestra/lists"}