https://github.com/agilecreativity/swiza-commons
swiza-commons by agilecreativity
https://github.com/agilecreativity/swiza-commons
Last synced: 11 months ago
JSON representation
swiza-commons by agilecreativity
- Host: GitHub
- URL: https://github.com/agilecreativity/swiza-commons
- Owner: agilecreativity
- License: epl-1.0
- Created: 2019-08-31T00:06:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T14:12:34.000Z (about 6 years ago)
- Last Synced: 2025-03-30T05:01:58.664Z (over 1 year ago)
- Language: Clojure
- Homepage: https://github.com/agilecreativity/swiza-commons
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## swiza-commons
[](https://clojars.org/net.b12n/swiza-commons)
[](https://jarkeeper.com/agilecreativity/swiza-commons)
Common Clojure library that I use for different projects and hopefully something that compatible with GraalVM.
### Basic Usage
If you are using Leiningen then you can quickly try
```shell
# Get project dependency
lein deps :tree
```
There are couple of function that I used quite often in other project.
```clojure
;; Use in your Clojure code
(require [b12n.swiza.commons.core-utils
:refer [expand-path
load-edn-config
assoc-some
map-keys
map-vals]]
[b12n.swiza.common.base64-utils
:refer [base64-encode
base64-decode]])
```
### Notes
- function that I used all the time would be:
```clojure
(expand-path "~/path") ;;=> "$HOME/path"
(load-edn-config "~/path/to/your/config.edn")
;; The following function works without issue when using with GraalVM
;; base64-encode
;; base64-decode
```