Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuid/transit
Cross-platform transit (de)serialization
https://github.com/nuid/transit
clj cljc cljs clojure clojurescript serialization transit
Last synced: 1 day ago
JSON representation
Cross-platform transit (de)serialization
- Host: GitHub
- URL: https://github.com/nuid/transit
- Owner: NuID
- License: apache-2.0
- Created: 2018-11-27T17:47:43.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T13:31:59.000Z (about 1 year ago)
- Last Synced: 2024-10-13T14:08:55.576Z (about 1 month ago)
- Topics: clj, cljc, cljs, clojure, clojurescript, serialization, transit
- Language: Clojure
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE.md
Awesome Lists containing this project
README
# nuid.transit
Cross-platform [transit](https://github.com/cognitect/transit-clj) (de)serialization for data structures across service and language boundaries.
## Requirements
[`jvm`](https://www.java.com/en/download/), [`node + npm`](https://nodejs.org/en/download/), [`clj`](https://clojure.org/guides/getting_started), [`shadow-cljs`](https://shadow-cljs.github.io/docs/UsersGuide.html#_installation)
## 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