Samples of useful things to do in Clojure that are supported either by the babashka-interpreter or by standard Clojure.
- Implementing protocols (interfaces) with
clojure.core.protocols
- CLI argument parsing with
babashka.cli
- Logging with
timbre
- Pattern matching with
clojure.core.match
- Using the babashka CLI as a Task Runner to replace Makefiles
- HTTP client using
slurp
,org.httpkit.client
,babashka.curl
etc - Property testing with
clojure.test.check
- Glueing together CLI-utilities with
process
- Wait for ports/files with
babashka.wait
- Parse data
- JSON with
cheshire.core
- YAML with
clj-yaml.core
- JSON with
- File system operations using
babashka.fs
- Data structure enforcement with
clojure.spec
- Generative testing with
clojure.spec.test
- Multi-method polymorphism
- Babashka book - Documentation and code examples
- Babashka toolbox - Overview of builtin and third-party libraries