Liking cljdoc? Tell your friends :D

bridge.io


->unixclj

(->unix s)

Normalize a path string to / separators. Java's File/Path APIs yield \ on Windows; relative paths and the artifact/policy globs they're matched against are always /-based, so a raw \ path silently fails every match.

Normalize a path string to `/` separators. Java's `File`/`Path` APIs yield
`\` on Windows; relative paths and the artifact/policy globs they're matched
against are always `/`-based, so a raw `\` path silently fails every match.
sourceraw docstring

absolute-pathclj

(absolute-path path)
source

absolute?clj

(absolute? path)
source

canonical-path-objectclj

(canonical-path-object path)
source

child-pathclj

(child-path base & parts)
source

data-digestclj

(data-digest value)
source

data-file?clj

(data-file? path)
source

data-files-underclj

(data-files-under root)
source

default-shell-commandclj

(default-shell-command)
(default-shell-command os-name program-files)
source

directory?clj

(directory? path)
source

edn-path?clj

(edn-path? path)
source

ensure-parent!clj

(ensure-parent! path)
source

exists?clj

(exists? path)
source

file-extensionclj

(file-extension path)
source

file-identity-bytesclj

(file-identity-bytes root rel-path)

Content identity for one repository path. Includes its relative path, file kind, executable bit, and bytes (or symlink target), but never timestamps.

Content identity for one repository path. Includes its relative path, file
kind, executable bit, and bytes (or symlink target), but never timestamps.
sourceraw docstring

file-seq-pathsclj

(file-seq-paths root pred)
source

keywordize-dataclj

(keywordize-data value)
source

markdown-path?clj

(markdown-path? path)
source

now-isoclj

(now-iso)
source

parse-dataclj

(parse-data path content)
source

path-within?clj

(path-within? root path)
source

read-dataclj

(read-data path)
source

read-resource-ednclj

(read-resource-edn resource-path)
source

read-textclj

(read-text path)
source

relativize-pathclj

(relativize-path root path)
source

repo-filesclj

(repo-files root)
source

resolve-pathclj

(resolve-path root path)
source

run-processclj

(run-process {:keys [argv cwd timeout-ms] :or {timeout-ms 300000}})
source

run-shellclj

(run-shell {:keys [command cwd timeout-ms shell]
            :or {shell (default-shell-command) timeout-ms 300000}})
source

sha256-bytesclj

(sha256-bytes bytes)
source

sha256-stringclj

(sha256-string value)
source

write-dataclj

(write-data path data)
source

write-ednclj

(write-edn path data)
source

write-textclj

(write-text path content)
source

write-yamlclj

(write-yaml path data)
source

yaml-path?clj

(yaml-path? path)
source

yaml-stringifyclj

(yaml-stringify data)

Coerce EDN-shaped data into the JSON-compatible shape the YAML dumper accepts: keywords (keys or values) become their qualified name and any other non-string map key is stringified. Map KEYS are additionally rendered in snake_case (kebab - -> _) so on-disk YAML matches the snake_case Vis works in; keywordize-data maps them back to kebab keywords on read.

Coerce EDN-shaped data into the JSON-compatible shape the YAML dumper
accepts: keywords (keys or values) become their qualified name and any other
non-string map key is stringified. Map KEYS are additionally rendered in
snake_case (kebab `-` -> `_`) so on-disk YAML matches the snake_case Vis
works in; `keywordize-data` maps them back to kebab keywords on read.
sourceraw 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