Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.07 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.07 KB

nuid.transit

Cross-platform transit (de)serialization for data structures across service and language boundaries.

Requirements

jvm, node + npm, clj, shadow-cljs

Clojure and ClojureScript

This library smooths over the interface differences between transit-clj and transit-cljs, which are likely temporary idiosyncrasies. This library will be phased out if the transit implementations converge on a common API.

tools.deps:

{nuid/transit {:git/url "https://github.com/nuid/transit" :sha "..."}}

usage:

$ clj # or shadow-cljs node-repl
=> (require '[nuid.transit :as transit])
=> (def rt {:round "trip"})
=> (def w (transit/write rt))
=> (def r (transit/read w))
=> (= rt r) ;; => true

Licensing

Apache v2.0 or MIT