https://github.com/agilecreativity/easy-config
easy-config by agilecreativity
https://github.com/agilecreativity/easy-config
Last synced: over 1 year ago
JSON representation
easy-config by agilecreativity
- Host: GitHub
- URL: https://github.com/agilecreativity/easy-config
- Owner: agilecreativity
- License: epl-1.0
- Created: 2016-07-29T03:34:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-30T04:17:07.000Z (almost 10 years ago)
- Last Synced: 2025-03-30T05:01:57.038Z (over 1 year ago)
- Language: Clojure
- Homepage: https://github.com/agilecreativity/easy-config
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# easy-config
[](https://clojars.org/easy-config)
[](https://jarkeeper.com/agilecreativity/easy-config)
A Clojure library designed to load simple config in the edn format.
## Usage
- Leiningen
```
[easy-config "0.1.2"]
```
### Example Usage:
```clojure
;; To load all config
(all-config "./sample-config.edn")
;; To load the first matching config having a given config-id
(load-config "~/Dropbox/sample-config.edn" "github")
```
### Sample config file in edn format
See [official edn format documentation](https://github.com/edn-format/edn) for detail.
```clojure
[{:id "github"
:site-url "https://github.com/login"
:username "awesome_dev"
:password "SECRET-PASSWORD"}
:nested-item {:some-key 123, :other-key "abc"}}
{:id "github-work"
:site-url "https://github.com/login"
:username "awesome-coder"
:password "EVENT-MORE-SECRET"}]
```
## License
Copyright © 2016 Burin Choomnuan
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.