{"id":19119473,"url":"https://github.com/sryze/dotenv","last_synced_at":"2025-02-22T12:25:43.160Z","repository":{"id":83572708,"uuid":"286269276","full_name":"sryze/dotenv","owner":"sryze","description":"Load .env files in C++","archived":false,"fork":false,"pushed_at":"2024-09-08T16:45:37.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T07:48:19.024Z","etag":null,"topics":["cplusplus","dotenv","library"],"latest_commit_sha":null,"homepage":"","language":"C++","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/sryze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-08-09T15:59:03.000Z","updated_at":"2024-09-08T16:45:40.000Z","dependencies_parsed_at":"2025-01-03T07:45:51.306Z","dependency_job_id":"9e5f390f-c775-4ae9-8dfd-fa459c636cd1","html_url":"https://github.com/sryze/dotenv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sryze%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sryze%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sryze%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sryze%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sryze","download_url":"https://codeload.github.com/sryze/dotenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240172810,"owners_count":19759638,"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":["cplusplus","dotenv","library"],"created_at":"2024-11-09T05:09:46.462Z","updated_at":"2025-02-22T12:25:43.143Z","avatar_url":"https://github.com/sryze.png","language":"C++","readme":"dotenv\n======\n\n[![Build Status][build_status]][build]\n\nExample code:\n\n```c++\n#include \u003ciostream\u003e\n#include \"dotenv.h\"\n\nint main() {\n    dotenv::load();\n\n    auto foo = dotenv::get(\"FOO\");\n    std::cout \u003c\u003c \"FOO = \" \u003c\u003c foo \u003c\u003c std::endl;\n\n    // It also works with getenv() from the standard library:\n    auto bar = getenv(\"BAR\");\n    if (bar != nullptr) {\n        std::cout \u003c\u003c \"BAR = \" \u003c\u003c bar \u003c\u003c std::endl;\n    }\n}\n```\n\nIn your .env file:\n\n```sh\nFOO=hello\nBAR=world\n```\n\nThere is also a command-line tool that can run any program with a user-provided\nenv-file, e.g.:\n\n```\n./dotenv /path/to/.env -- sh -c 'echo $FOO'\n```\n\n[build]: https://travis-ci.org/sryze/dotenv\n[build_status]: https://travis-ci.org/sryze/dotenv.svg?branch=master\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsryze%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsryze%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsryze%2Fdotenv/lists"}