Liking cljdoc? Tell your friends :D
All platforms.

koine.env

Environment variables, portable.

Values read here are frequently secrets (API keys expanded into MCP headers). Nothing in this namespace logs, prints or caches a value.

Environment variables, portable.

Values read here are frequently secrets (API keys expanded into MCP headers).
Nothing in this namespace logs, prints or caches a value.
raw docstring

expandclj/s

(expand s)

Replace every ${VAR} in s with its environment value. An unset variable expands to the empty string, matching the other toolnexus ports. A ${…} whose contents are not a legal variable name is left verbatim.

Hand-rolled rather than str/replace with a function replacement: cljgo's clojure.string/replace only accepts a string replacement and throws replace expects a String, got: #object[fn] on the function arity (measured 2026-07-30). A scan over the string is plain clojure.core, so it is identical on every host — rule 3.

Replace every ${VAR} in `s` with its environment value. An unset variable
expands to the empty string, matching the other toolnexus ports. A `${…}`
whose contents are not a legal variable name is left verbatim.

Hand-rolled rather than `str/replace` with a function replacement: cljgo's
`clojure.string/replace` only accepts a string replacement and throws
`replace expects a String, got: #object[fn]` on the function arity (measured
2026-07-30). A scan over the string is plain `clojure.core`, so it is
identical on every host — rule 3.
raw docstring

get-envclj/s

(get-env name)
(get-env name default)

The value of environment variable name, or nil / default when unset.

The value of environment variable `name`, or nil / `default` when unset.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close