{"id":21577712,"url":"https://github.com/harium/dotenv","last_synced_at":"2025-10-08T23:05:13.763Z","repository":{"id":57724866,"uuid":"46528153","full_name":"Harium/dotenv","owner":"Harium","description":"An utility tool to handle .env files in pure Java","archived":false,"fork":false,"pushed_at":"2022-04-16T08:02:18.000Z","size":30,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T03:53:08.365Z","etag":null,"topics":["dotenv","java","web"],"latest_commit_sha":null,"homepage":"","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/Harium.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-11-20T00:08:51.000Z","updated_at":"2023-08-27T15:08:41.000Z","dependencies_parsed_at":"2022-09-10T23:55:46.458Z","dependency_job_id":null,"html_url":"https://github.com/Harium/dotenv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Harium/dotenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harium%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harium%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harium%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harium%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harium","download_url":"https://codeload.github.com/Harium/dotenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harium%2Fdotenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000731,"owners_count":26082862,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["dotenv","java","web"],"created_at":"2024-11-24T13:08:19.857Z","updated_at":"2025-10-08T23:05:13.717Z","avatar_url":"https://github.com/Harium.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotenv\n[![CircleCI](https://circleci.com/gh/Harium/dotenv.svg?style=svg)](https://circleci.com/gh/Harium/dotenv)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.harium/dotenv/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.harium/dotenv/)\n\nAn utility tool to handle .env files in Java.\n\n## Maven\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.harium\u003c/groupId\u003e\n  \u003cartifactId\u003edotenv\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.7\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Example\nCreate a .env file and place it at the root folder of your project.\n\nGet your variables using:\n```java\nString myValue = Env.get(\"MY_SECRET\");\n```\n\nAlternatively, you can use a custom path using the path parameter:\n```java\nString myValue = Env.path(\"/home/user/myFolder\").get(\"MY_SECRET\");\n```\n\n## Fallback\nIf your variable is not declared in .env, dotenv will try to load it from the environment variables.\n\n## How it works\nDotenv looks for a .env file and loads it's contents. When you call\n`Env.get(\"MY_SECRET\");` for the first time, dotenv will try to load all the variables and cache them.\n\nAt this repo you can find an example (.env) file: [example](https://github.com/Harium/dotenv/blob/master/.env).\n\n## License\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharium%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharium%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharium%2Fdotenv/lists"}