Liking cljdoc? Tell your friends :D

clj-semver.core


cmpclj

(cmp a b)

Compares versions a and b, returning -1 if a is older than b, 0 if they're the same version, and 1 if a is newer than b

Compares versions a and b, returning -1 if a is older than b, 0 if
they're the same version, and 1 if a is newer than b
sourceraw docstring

equal?clj

(equal? a b)

Is version a the same as version b?

Is version a the same as version b?
sourceraw docstring

newer?clj

(newer? a b)

Is version a newer than version b?

Is version a newer than version b?
sourceraw docstring

older?clj

(older? a b)

Is version a older than version b?

Is version a older than version b?
sourceraw docstring

parseclj

(parse s)

Parses string s into a version map

Parses string `s` into a version map
sourceraw docstring

patternclj

source

try-parse-intclj

(try-parse-int o)

Attempt to parse o to an int, returning o if that fails or the parsed version of o if successful.

Attempt to parse `o` to an int, returning `o` if that fails or the
parsed version of `o` if successful.
sourceraw docstring

valid-format?clj

(valid-format? s)

Checks the string s for semantic versioning formatting

Checks the string `s` for semantic versioning formatting
sourceraw docstring

valid?clj

(valid? v)

Checks if the supplied version map is valid or not

Checks if the supplied version map is valid or not
sourceraw docstring

versionclj

(version o)

If o is a valid version map, does nothing. Otherwise, we'll attempt to parse o and return a version map.

If `o` is a valid version map, does nothing. Otherwise, we'll
attempt to parse `o` and return a version map.
sourceraw docstring

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

× close