Liking cljdoc? Tell your friends :D

chlorine.util


*cwd*clj

Stores current working directory

Stores current working directory
raw docstring

*paths*clj

Stores paths to search for filenames with find-in-paths

Stores paths to search for filenames with find-in-paths
raw docstring

assert-argscljmacro

(assert-args fnname & pairs)

file-exists?clj

(file-exists? abs-file)

If file exists, returns file. Else returns nil. Please note URLs are not checked and there should be a exception handler in case URL doesn't exist.

If file exists, returns file. Else returns nil.
Please note URLs are not checked and there should be a
exception handler in case URL doesn't exist.
raw docstring

find-in-pathsclj

(find-in-paths file-name)

Tries to find a file with such name in paths. Returns found file's path if succeeded, else returns nil.

Tries to find a file with such name in paths.
Returns found file's path if succeeded, else returns nil.
raw docstring

format-codeclj

(format-code form)

Print Clojure's forms in pretty format

Print Clojure's forms in pretty format
raw docstring

get-dirclj

(get-dir abs-file)

Get directory path from absolute file path.

Get directory path from absolute file path.
raw docstring

re-compareclj

(re-compare x)
(re-compare x y)
(re-compare x y & more)

Compare regular expressions

Compare regular expressions
raw docstring

re?clj

(re? expr)

Checks if an object is a regular expression.

Checks if an object is a regular expression.
raw docstring

replace-mapclj

(replace-map s m)

Replaces match sub-strings with replacements found in a map. Use array-map to reserve key orders.

Replaces match sub-strings with replacements found in a map.
Use array-map to reserve key orders.
raw docstring

resource-path?clj

(resource-path? s)

Check if a string is a resource url (starting with r:/).

Check if a string is a resource url (starting with r:/).
raw docstring

timestampclj

(timestamp)

Generates timestamp string in HH:mm:ss format.

Generates timestamp string in HH:mm:ss format.
raw docstring

to-abs-pathclj

(to-abs-path path)

Converts a path to an absolute one.

  • If given path is home-relative, expands it
  • If given path is already absolute path (files, urls or resources) returns it.
  • Else (given path is relative), returns nil.
Converts a path to an absolute one.
- If given path is home-relative, expands it
- If given path is already absolute path (files, urls or resources)
returns it.
- Else (given path is relative), returns nil.
raw docstring

to-full-pathclj

(to-full-path path-dir fname)

Makes a full path from a directory path and a relative file name.

Makes a full path from a directory path and a relative file name.
raw docstring

to-resourceclj

(to-resource s)

Makes resource object from r:/ path.

Makes resource object from r:/ path.
raw docstring

unzipclj

(unzip s)

Reverse of 'clojure.core/zipmap

Reverse of 'clojure.core/zipmap
raw docstring

url?clj

(url? s)

Check if a string is an url.

Check if a string is an url.
raw docstring

with-timeoutcljmacro

(with-timeout ms & body)

Executes a form within a time limit in miliseconds

Executes a form within a time limit in miliseconds
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close