{"id":28483201,"url":"https://github.com/toliyansky/scripting-utils","last_synced_at":"2025-09-09T23:13:37.683Z","repository":{"id":242909537,"uuid":"809339312","full_name":"toliyansky/scripting-utils","owner":"toliyansky","description":"Scripting Utils for Java","archived":false,"fork":false,"pushed_at":"2024-06-08T20:26:33.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T21:42:30.125Z","etag":null,"topics":["java","scripting"],"latest_commit_sha":null,"homepage":"https://dev.to/toliyansky/scripting-with-java-3i9k","language":"Java","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/toliyansky.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":"2024-06-02T12:16:48.000Z","updated_at":"2025-04-02T19:30:04.000Z","dependencies_parsed_at":"2025-01-10T01:39:18.310Z","dependency_job_id":null,"html_url":"https://github.com/toliyansky/scripting-utils","commit_stats":null,"previous_names":["anatoliykozlov/scripting-utils","toliyansky/scripting-utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toliyansky/scripting-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toliyansky%2Fscripting-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toliyansky%2Fscripting-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toliyansky%2Fscripting-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toliyansky%2Fscripting-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toliyansky","download_url":"https://codeload.github.com/toliyansky/scripting-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toliyansky%2Fscripting-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262518040,"owners_count":23323298,"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":["java","scripting"],"created_at":"2025-06-07T21:30:57.678Z","updated_at":"2025-06-29T00:31:27.558Z","avatar_url":"https://github.com/toliyansky.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scripting Utils for Java\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/995494f09a9a48aa4857/maintainability)](https://codeclimate.com/github/AnatoliyKozlov/scripting-utils/maintainability)\n[![codecov](https://codecov.io/github/AnatoliyKozlov/scripting-utils/graph/badge.svg?token=4HO8QZMZUE)](https://codecov.io/github/AnatoliyKozlov/scripting-utils)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n### Description\n\nThis project provides a set of utilities for scripting in Java. It allows you to write Java scripts productively and efficiently.\n\nModules (static objects) with tons of default behavior are available for use. You can use them in your scripts without writing boilerplate code.\n\n### Article on Dev.to\n\nIt is a good idea to read the article on Dev.to to get a better understanding of the project:\nhttps://dev.to/toliyansky/scripting-with-java-3i9k\n\n### Installation\n```shell\ncurl -s https://raw.githubusercontent.com/AnatoliyKozlov/scripting-utils/master/install.sh | bash\n```\n\n### Requirements\n- Java 22 or higher\n\n### How to use\n1) Install scripting-utils. Execute one-line command from the Installation section above\n2) Create a shebang file (**without** the .java extension) \n3) Write your Java code in the file (as in example below)\n```java\n#!/usr/bin/env java --source 22 --enable-preview --class-path /Users/toliyansky/scripting-utils\n\nimport static scripting.Utils.*;\n\nvoid main() {\n    println(\"Hello, World!\");\n    var response = http.get(\"https://httpbin.org/get\");\n    log.info(response.body());\n}\n```\n4) Apply command `chmod +x your-file-name` to make it executable\n5) Run the file from the command line. For example: `./your-file-name`\n\n### Features\n\n- Functions: `print(obj)`, `println(obj)`, `readln(prompt)` from [JEP 477](https://openjdk.org/jeps/477), available now. No need wait [JEP 477](https://openjdk.org/jeps/477) that will be available in Java 23.\n\n  #### Modules (static objects):\n- `http` for HTTP requests\n- `terminal` for terminal commands\n- `file` for file operations\n- `log` for logging\n- `thread` for threading\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoliyansky%2Fscripting-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoliyansky%2Fscripting-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoliyansky%2Fscripting-utils/lists"}