{"id":19530157,"url":"https://github.com/tpope/lein-dotenv","last_synced_at":"2025-04-26T12:30:45.179Z","repository":{"id":22222055,"uuid":"25554912","full_name":"tpope/lein-dotenv","owner":"tpope","description":"Leiningen plugin to merge .env into environment variables","archived":false,"fork":false,"pushed_at":"2014-10-22T01:27:02.000Z","size":116,"stargazers_count":35,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T23:13:53.937Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://clojars.org/lein-dotenv","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/tpope.png","metadata":{"files":{"readme":"README.markdown","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":"2014-10-22T01:19:14.000Z","updated_at":"2024-05-01T23:13:53.938Z","dependencies_parsed_at":"2022-09-03T16:00:39.288Z","dependency_job_id":null,"html_url":"https://github.com/tpope/lein-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/tpope%2Flein-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Flein-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Flein-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Flein-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/lein-dotenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224034960,"owners_count":17244872,"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":[],"created_at":"2024-11-11T01:29:24.918Z","updated_at":"2024-11-11T01:29:26.607Z","avatar_url":"https://github.com/tpope.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lein-dotenv\n\nA Leiningen plugin to load variables from `.env` into the environment of your\nproject, in a manner compatible with [Foreman][], the Ruby [dotenv gem][], and\nmany other tools and libraries.  This is a development convenience to enable a\nseamless transition to a [12 factor](http://12factor.net/config) deployment,\nwhich mandates configuration in the environment.\n\nThis plugin works by overriding the environment Leiningen spawns your project\nwith, which provides two key advantages over a plain library approach:\n\n* Java doesn't allow changing the environment at runtime, which means a\n  library would instead have settle for setting system properties or some\n  other crude approximation, defeating much of the purpose.\n* A library would have to be loaded and activated manually, needlessly\n  concerning your application with development concerns, not to mention load\n  order issues.\n\n[Foreman]: https://github.com/ddollar/foreman\n[dotenv gem]: https://github.com/bkeepers/dotenv\n\n## Setup\n\nTo install at the user level, put `[lein-dotenv \"RELEASE\"]` into the\n`:plugins` vector of your `:user` profile in `~/.lein/profiles.clj`.\n\n    {:user {:plugins [[lein-dotenv \"RELEASE\"]]}}\n\nThe plugin will also work on a per project level if added to `project.clj`.\nThis may be preferable if you want to avoid imposing user profile\nrequirements on all contributors.\n\n    {defproject myproject \"0.1.0-SNAPSHOT\"\n      {:profiles {:dev {:plugins [[lein-dotenv \"RELEASE\"]]}}}}\n\n## Usage\n\nCreate a file named `.env` at the root of your project and use shell syntax to\ndeclare your variables.\n\n     HELLO=Hello\n     GREETING=\"$HELLO, world!\"\n     LITERAL='$VARs are not interpolated in single quotes'\n\nThe `.env` file is also used by [Foreman][] and similar tools\n\n## License\n\nCopyright © Tim Pope\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%2Ftpope%2Flein-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Flein-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Flein-dotenv/lists"}