Liking cljdoc? Tell your friends :D

com.cognitect.vase.util


edn-fileclj

(edn-file file-path)

edn-resourceclj

(edn-resource file-path)
(edn-resource file-path fallback-path)
(edn-resource file-path fallback-path process-path-fn)

Load an EDN resource file and read its contents. The only required argument is file-path, which is the path of a file relative the projects resources directory (resources/ or, for tests, test/resources/).

Optional arguments:

  • fallback-path - A "default" path to check if file-path is actually an empty string. Useful in places you load a file-path from a config and its value might be absent.
  • process-path-fn - The function to use for getting the URL of the file. By default uses clojure.java.io/resource.
Load an EDN resource file and read its contents. The only required argument
is `file-path`, which is the path of a file relative the projects resources
directory (`resources/` or, for tests, `test/resources/`).

Optional arguments:

* `fallback-path` - A "default" path to check if file-path is actually an
  empty string. Useful in places you load a `file-path` from a config and its
  value might be absent.
* `process-path-fn` - The function to use for getting the URL of the file. By
  default uses `clojure.java.io/resource`.
raw docstring

emap->datomsclj

(emap->datoms idx e emap)

empty-valueclj

(empty-value [_ _ v])

ensure-keywordclj

(ensure-keyword x)

eseq?clj

(eseq? v)

fully-qualify-symbolclj

(fully-qualify-symbol sym)
(fully-qualify-symbol ns sym)

map-valsclj

(map-vals f m)

name-value-entitiesclj

(name-value-entities m val-key)

payload-responseclj

(payload-response request response-data errors-data)
(payload-response request response-data errors-data headers)
(payload-response request response-data errors-data headers status)

push-down-namesclj

(push-down-names m)

read-ednclj

(read-edn string & args)

Converts an edn string into Clojure data. args are clojure.edn opts :readers defaults to *data-readers*

Converts an edn string into Clojure data. `args` are clojure.edn `opts`
`:readers` defaults to `*data-readers*`
raw docstring

read-jsonclj

(read-json string & args)

Converts json string to Clojure data. By default, keys are keywordized.

Converts json string to Clojure data. By default, keys are keywordized.
raw docstring

read-transit-jsonclj

(read-transit-json transit-json-str)

responseclj

(response body headers status)

short-hashclj

(short-hash)

status-codeclj

(status-code response errors)

str->inputstreamclj

(str->inputstream text)
(str->inputstream text encoding)

write-ednclj


write-jsonclj

(write-json data & args)

Writes json string given Clojure data. By default, unicode is not escaped.

Writes json string given Clojure data. By default, unicode is not escaped.
raw docstring

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

× close