{"id":28205810,"url":"https://github.com/coast-framework/env","last_synced_at":"2025-07-31T08:33:50.514Z","repository":{"id":62431670,"uuid":"198913137","full_name":"coast-framework/env","owner":"coast-framework","description":"Easy clojure environment variables","archived":false,"fork":false,"pushed_at":"2019-08-18T18:04:18.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-05T02:03:59.895Z","etag":null,"topics":["clojure","environment","environment-variables"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/coast-framework.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":"2019-07-25T23:18:59.000Z","updated_at":"2019-08-18T18:04:20.000Z","dependencies_parsed_at":"2022-11-01T21:00:38.602Z","dependency_job_id":null,"html_url":"https://github.com/coast-framework/env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coast-framework/env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coast-framework%2Fenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coast-framework%2Fenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coast-framework%2Fenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coast-framework%2Fenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coast-framework","download_url":"https://codeload.github.com/coast-framework/env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coast-framework%2Fenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268011980,"owners_count":24180883,"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-07-31T02:00:08.723Z","response_time":66,"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":["clojure","environment","environment-variables"],"created_at":"2025-05-17T10:08:33.875Z","updated_at":"2025-07-31T08:33:50.475Z","avatar_url":"https://github.com/coast-framework.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# env\nEasy clojure environment variables\n\n## Quickstart\n\nGiven an `.env` file in the root of your project directory:\n\n```sh\nA_VALUE=hello\n```\n\n```clojure\n(ns your-project\n  (:require [env.core :as env]))\n\n(env/env :a-value) ; =\u003e hello\n```\n\n## Install\n\nAdd this to your [deps.edn](https://clojure.org/guides/deps_and_cli)\n\n```clojure\ncoast-framework/env {:mvn/version \"1.0.3\"}}\n```\n\n## Usage\n\nGiven a `.env` file above or the equivalent `env.edn`\n\n### Conventions\n\nNotice system environment variables and values in `.env` are all upper and snake case, while the `env.edn` variables are all lower, kebab case keywords.\n\n```clojure\n{:a-value \"hello\"}\n```\n\nThis will return \"hello\"\n\n```clojure\n(env/env :a-value)\n```\n\n### Tagged literals\n\n`env.edn` has one trick up it's sleeve, tagged literals. You can set a `#env` tagged literal to grab a value from the actual environment and commit `env.edn` *without* committing the secret to source control.\n\n`env.edn` (committed to source control)\n\n```clojure\n{:a-secret-value #env :session-key}\n```\n\n`.env` (not committed to source control)\n\n```sh\nSESSION_KEY=123456\nCOAST_ENV=dev\n```\n\n```clojure\n(env/env :a-secret-value) ; =\u003e \"123456\"\n```\n\n## Running the tests\n\n```sh\ncd env \u0026\u0026 make test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoast-framework%2Fenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoast-framework%2Fenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoast-framework%2Fenv/lists"}