Liking cljdoc? Tell your friends :D

cucl.core-utils


custom-date-formatclj

(custom-date-format date-time)

Reformat the result from the database in the preferred format.

Reformat the result from the database in the preferred format.
sourceraw docstring

expand-and-normalized-pathclj

(expand-and-normalized-path filename)
source

expand-pathclj

source

filename-with-timestampclj

(filename-with-timestamp filename)

Create a simple filename with a given timestamp.

Create a simple filename with a given timestamp. 
sourceraw docstring

filter-non-nilclj

(filter-non-nil item)

Filter out the maps value that are not nil

Filter out the maps value that are not nil
sourceraw docstring

find-binaryclj

(find-binary binary-name)

Locate a binary from the Unix/Linux PATH system.

Locate a binary from the Unix/Linux PATH system.
sourceraw docstring

get-extensionclj

(get-extension file-path)

Extract the file extension from a given file object

Extract the file extension from a given file object
sourceraw docstring

home-dirclj

source

is-linux?clj

(is-linux?)

Check for the system type and return true if it is Linux based system.

Check for the system type and return true if it is Linux based system.
sourceraw docstring

is-macos?clj

(is-macos?)

Check for the system type and return true if it is MacOS based system.

Check for the system type and return true if it is MacOS based system.
sourceraw docstring

is-windows?clj

(is-windows?)

Check for the system type and return true if it is Windows based system.

Check for the system type and return true if it is Windows based system.
sourceraw docstring

keywordize-argumentsclj

(keywordize-arguments & args)

Convert list of arguments to hash map of keywords and values.

Convert list of arguments to hash map of keywords and values.
sourceraw docstring

list-filesclj

(list-files base-dir & [{:keys [patterns]}])

List files from a given directory matching specific patterns. Example Usage: (list-file "~/projects/awesome" {:patterns ".{clj,md}"}) (list-file "~/projects/awesome" {:patterns ".*"})

List files from a given directory matching specific patterns.
Example Usage:
(list-file "~/projects/awesome" {:patterns "*.{clj,md}"})
(list-file "~/projects/awesome" {:patterns "*.*"})
sourceraw docstring

load-edn-configclj

(load-edn-config config)

Load the edn config from a given file.

Load the edn config from a given file.
sourceraw docstring

map-keysclj

(map-keys f m)

Given a function and a map, returns the map resulting from applying the function to each key.

e.g. (map-keys name {:a 1 :b 2 :c 3}) ;;=> {"a" 1, "b" 2, "c" 3}

Given a function and a map, returns the map resulting from applying
the function to each key.

e.g. (map-keys name {:a 1 :b 2 :c 3}) ;;=> {"a" 1, "b" 2, "c" 3}
sourceraw docstring

map-valsclj

(map-vals f m)

Given a function and a map, returns the map resulting from applying the function to each value.

e.g. (map-vals inc {:a 1 :b 2 :c 3}) ;;=> {:a 2, :b 3, :c 4}

Given a function and a map, returns the map resulting from applying
the function to each value.

e.g. (map-vals inc {:a 1 :b 2 :c 3}) ;;=> {:a 2, :b 3, :c 4}
sourceraw docstring

parse-intclj

(parse-int number-string)

Parse a string to a number when possible

Parse a string to a number when possible
sourceraw docstring

pretty-formatclj

(pretty-format arg)
source

(print-members c)
source

quote-fnclj

(quote-fn text)

Quote input if they are all numbers.

Quote input if they are all numbers.
sourceraw docstring

remove-ansiclj

(remove-ansi text)

Remove CSI sequences from a given text.

Remove CSI sequences from a given text.
sourceraw docstring

resources-pathclj

(resources-path config)

Return config file path from resources directory.

Return config file path from resources directory.
sourceraw docstring

show-membersclj

(show-members object)

Print the list of methods of a given object using reflection.

Print the list of methods of a given object using reflection.
sourceraw docstring

slurp-fileclj

(slurp-file input-file)

Read content of the file that understand ~ for HOME in Unix/Linux system.

Read content of the file that understand `~` for HOME in Unix/Linux system.
sourceraw docstring

str-to-intclj

(str-to-int number)

Convert string input to a number if it is not already an integer.

Convert string input to a number if it is not already an integer.
sourceraw docstring

suppress-ansiclj

(suppress-ansi text)

Suppress the ANSI color from the result of executing ssh command.

Suppress the ANSI color from the result of executing ssh command.
sourceraw docstring

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

× close