{"id":32190986,"url":"https://github.com/cwhitey/dotty","last_synced_at":"2026-02-21T15:07:17.817Z","repository":{"id":62432233,"uuid":"137087506","full_name":"cwhitey/dotty","owner":"cwhitey","description":"Retrieve environment variables from .env","archived":false,"fork":false,"pushed_at":"2018-10-09T05:19:33.000Z","size":19,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-02T08:28:28.628Z","etag":null,"topics":["clojure","dotenv"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cwhitey.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":"2018-06-12T14:56:17.000Z","updated_at":"2022-03-08T11:43:51.000Z","dependencies_parsed_at":"2022-11-01T21:00:44.243Z","dependency_job_id":null,"html_url":"https://github.com/cwhitey/dotty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwhitey/dotty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwhitey%2Fdotty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwhitey%2Fdotty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwhitey%2Fdotty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwhitey%2Fdotty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwhitey","download_url":"https://codeload.github.com/cwhitey/dotty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwhitey%2Fdotty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29684106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"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":["clojure","dotenv"],"created_at":"2025-10-22T01:23:51.891Z","updated_at":"2026-02-21T15:07:17.813Z","avatar_url":"https://github.com/cwhitey.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Clojars Project](https://img.shields.io/clojars/v/cwhitey/dotty.svg)](https://clojars.org/cwhitey/dotty)\n\n# dotty\n\nRetrieves environment variables, prioritizing those defined in `{project_root}/.env`.\n - Ignores single-line comments (using `#`)\n - Handles empty lines gracefully\n - Preserves double-quotes and newline characters in env values\n\nAims to have rules-parity with [dotenv](https://github.com/motdotla/dotenv#rules) written for node.js.\n\n## Usage\n\n```clojure\n(require '[dotty.core :refer [env]])\n\n(env \"PATH\")\n;=\u003e \"/bin:/usr/bin:/usr/local/bin\"\n```\n\nGiven your project's `.env` file contains:\n```\nMY_SECRET_KEY=foo1234\n```\n\nRetrieve it with the following:\n\n```clojure\n(env \"MY_SECRET_KEY\")\n;=\u003e \"foo1234\"\n```\n\n## License\n\nCopyright © 2018 Callum White\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwhitey%2Fdotty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwhitey%2Fdotty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwhitey%2Fdotty/lists"}