{"id":13806109,"url":"https://github.com/zztkm/vdotenv","last_synced_at":"2026-01-23T16:36:41.312Z","repository":{"id":54308659,"uuid":"275340396","full_name":"zztkm/vdotenv","owner":"zztkm","description":"Which loads env vars from a .env file.","archived":false,"fork":false,"pushed_at":"2024-08-11T04:09:01.000Z","size":292,"stargazers_count":43,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-18T01:38:53.723Z","etag":null,"topics":["dotenv","v","v-module","vlang","vlang-module"],"latest_commit_sha":null,"homepage":"","language":"V","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/zztkm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"docs/CODE_OF_CONDUCT.md","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-06-27T09:34:07.000Z","updated_at":"2026-01-02T20:41:09.000Z","dependencies_parsed_at":"2022-08-13T11:40:17.189Z","dependency_job_id":"caa51066-7558-43e7-937a-6ce957f23ffa","html_url":"https://github.com/zztkm/vdotenv","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/zztkm/vdotenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fvdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fvdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fvdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fvdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zztkm","download_url":"https://codeload.github.com/zztkm/vdotenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zztkm%2Fvdotenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28695596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: 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":["dotenv","v","v-module","vlang","vlang-module"],"created_at":"2024-08-04T01:01:07.937Z","updated_at":"2026-01-23T16:36:41.293Z","avatar_url":"https://github.com/zztkm.png","language":"V","funding_links":[],"categories":["Libraries"],"sub_categories":["Utility"],"readme":"# dotenv module for V\n[![Latest version][version-badge]][version-url] [![CI](https://github.com/zztkm/vdotenv/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/zztkm/vdotenv/actions/workflows/ci.yml)\n\nEnglish\n/ [Japanese](./docs/README_ja.md)\n\nvdotenv is a module to read environment variables from `.env` files\n\n- Which loads env vars from a .env file.\n- Existing environment variables can be overridden in the program\n- Inspired by https://github.com/joho/godotenv.\n\n\n[module document.](docs/vdotenv.md)\n\n## Usage\n\nAdd your application configuration to your `.env` file in the root of your project:\n```\nS3_BUCKET=YOURS3BUCKET\nDYNAMODB_TABLE=YOURDYNAMODBTABLE\n```\n\nThen in your V app you can do something like\n\n```v\nimport os\n\nimport zztkm.vdotenv\n\nfn main() {\n    // loads env vars from a .env file.\n    vdotenv.load()\n\n    s3_bucket := os.getenv('S3_BUCKET')\n    dynamodb_table := os.getenv('DYNAMODB_TABLE')\n\n    // ...\n}\n```\nBy default, load looks for a file called .env in your current working directory, but you can also specify the file as follows:\n```v\nvdotenv.load(\".env.develop\") // load `.env.development`\nvdotenv.load(\".env\", \".env.develop\") // load `.env` and `.env.develop`\n```\n\nYou can write comments in the env file:\n```\n# This is comment\nFOO=BAR\nAPI_URL=YOUR_API_URL # This is inline comment\n```\n\n## Installation and Import\n\n### Using vpm:\n\nInstall/Update:\n```\nv install zztkm.vdotenv\n```\n\nImport:\n```v\nimport zztkm.vdotenv\n```\n\n### Using github (least recommended):\n\n```bash\nv install --git https://github.com/hungrybluedev/whisker\n```\n\nImport:\n```v\nimport vdotenv\n```\n\n\n## Contributing\n\n[Contributing Guide for this repository.](docs/CONTRIBUTING.md)\n\n## License\n\n[MIT License](LICENSE.txt)\n\n[docs]: https://github.com/zztkm/vdotenv\n[version-badge]: https://img.shields.io/github/v/release/zztkm/vdotenv?logo=github\u0026logoColor=white\n[version-url]: https://github.com/zztkm/vdotenv/releases/latest\n[workflow-badge]: https://img.shields.io/github/workflow/status/zztkm/vdotenv/CI?label=test\u0026logo=github\u0026logoColor=white\n[workflow-url]: https://github.com/zztkm/vdotenv/actions?query=workflow%3ACI\n\n## TDOO\n\n- [ ] [cli app](https://github.com/zztkm/vdotenv/issues/13)\n- [ ] README: add tutorial(for dotenv beginner)\n\n## Acknowledgement\n\n- [ivixvi](https://github.com/ivixvi)\n- [ksk001100](https://github.com/ksk001100)\n- [nyx-litenite](https://github.com/nyx-litenite)\n\n## Author\n\n- [zztkm](https://github.com/zztkm/vdotenv)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzztkm%2Fvdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzztkm%2Fvdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzztkm%2Fvdotenv/lists"}