A Clojure library designed to help you read configs from json
files which can include environment variables.
[org.clojars.yanatan16/config "0.1.0"]
- Add
json
files to your resources path. - Use the syntax
{env://ENV_VAR_NAME}
in values to be replaced by environment variables. - You can use the
lein-environ
plugin to set environment variables in yourproject.clj
. - Call
(yanatan.config/config "file1.json" "folder/file2.json")
to setup config. - Call
(yanatan16.config/config)
later to get the config again.
MIT. See LICENSE
file.