Liking cljdoc? Tell your friends :D

taoensso.sente.packers.transit

Experimental - subject to change! Optional Transit-format[1] IPacker implementation for use with Sente. [1] https://github.com/cognitect/transit-format.

Experimental - subject to change!
Optional Transit-format[1] IPacker implementation for use with Sente.
[1] https://github.com/cognitect/transit-format.
raw docstring

default-flexi-packercljs


FlexiPackercljs


get-flexi-packercljs

(get-flexi-packer & [?default-fmt])

Experimental (pre-alpha): subject to change. Returns an IPacker implementation that un/packs data with a variable format determined by the data's size, metadata, or the provided default-fmt when no metadata is present.

(def fpack (partial pack (get-flexi-packer :edn))) (fpack ^:edn {:a :A :b :B}) => "e{:a :A, :b :B}" (fpack ^:json {:a :A :b :B}) => "j["^ ","~:a","~:A","~:b","~:B"]" (fpack ^:msgpack {:a :A :b :B} => "m‚£~:a£~:A£~:b£~:B"

Experimental (pre-alpha): subject to change.
Returns an IPacker implementation that un/packs data with a variable format
determined by the data's size, metadata, or the provided `default-fmt` when no
metadata is present.

(def fpack (partial pack (get-flexi-packer :edn)))
(fpack ^:edn     {:a :A :b :B}) => "e{:a :A, :b :B}"
(fpack ^:json    {:a :A :b :B}) => "j["^ ","~:a","~:A","~:b","~:B"]"
(fpack ^:msgpack {:a :A :b :B}  => "m‚£~:a£~:A£~:b£~:B"
raw docstring

TransitPackercljs

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

× close