Liking cljdoc? Tell your friends :D

cli-matic.platform

clj

Platform-specific functions for the JVM.

If running on ClojureScript, we can have a different file for JS.

BTW, in this NS, we avoid using Spec / Orchestra.

## Platform-specific functions for the JVM.

If running on ClojureScript, we can have a different file for JS.

BTW, in this NS, we avoid using Spec / Orchestra.

cljs

Platform-specific functions for Node.

At the moment it's all empty.

BTW, in this NS, we avoid using Spec / Orchestra.

## Platform-specific functions for Node.

At the moment it's all empty.

BTW, in this NS, we avoid using Spec / Orchestra.

raw docstring

add-shutdown-hookclj/s≠

(add-shutdown-hook fnToCallOnShutdown)
clj

Add a shutdown hook. If nil, simply ignores it.

The shutdown hook is run in a new thread.

Add a shutdown hook. If `nil`, simply ignores it.

The shutdown hook is run in a new thread.

cljs

Add a shutdown hook.

Does not work (?) on CLJS.

Add a shutdown hook.

Does not work (?) on CLJS.
source (clj)source (cljs)raw docstring

asDateclj/s

(asDate s)

Converts a string in format yyyy-mm-dd to a Date object; if conversion fails, returns nil.

Converts a string in format yyyy-mm-dd to a
Date object; if conversion
fails, returns nil.
source (clj)source (cljs)raw docstring

exit-scriptclj/s

(exit-script retval)

Terminates execution with a return value.

Terminates execution with a return value.
source (clj)source (cljs)raw docstring

parseEdnclj/s≠

(parseEdn edn-in)
clj

Decodes EDN through clojure.edn.

Decodes EDN through clojure.edn.
cljs
See https://stackoverflow.com/questions/44661385/how-do-i-read-an-edn-file-from-clojurescript-running-on-nodejs
source (clj)source (cljs)raw docstring

parseFloatclj/s

(parseFloat s)

Converts a string to a float.

Converts a string to a float.
source (clj)source (cljs)raw docstring

parseIntclj/s

(parseInt s)

Converts a string to an integer.

Converts a string to an integer. 
source (clj)source (cljs)raw docstring

read-envclj/s

(read-env var)

Reads an environment variable. If undefined, returns nil.

Reads an environment variable.
If undefined, returns nil.
source (clj)source (cljs)raw docstring

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

× close