https://github.com/jtkdvlp/transit
Mini clj and cljs lib for common transit usage.
https://github.com/jtkdvlp/transit
clojure clojurescript transit
Last synced: 2 months ago
JSON representation
Mini clj and cljs lib for common transit usage.
- Host: GitHub
- URL: https://github.com/jtkdvlp/transit
- Owner: jtkDvlp
- License: other
- Created: 2022-05-16T17:58:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T00:23:57.000Z (over 2 years ago)
- Last Synced: 2025-03-02T01:55:28.385Z (3 months ago)
- Topics: clojure, clojurescript, transit
- Language: Clojure
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://clojars.org/net.clojars.jtkdvlp/transit)
[](https://cljdoc.org/d/net.clojars.jtkdvlp/transit/CURRENT)
[](https://github.com/jtkDvlp/transit/actions/workflows/clojure.yml)# jtk-dvlp.transit
Mini clj and cljs lib for common transit usage.
## Features
- Provides `clj->transit` and `transit->clj` helpers
- Supports clj-time instances## Getting started
### Get it / add dependency
Add the following dependency to your `project.clj`:
[](https://clojars.org/net.clojars.jtkdvlp/transit)### Usage
See in repo [your-project.cljs](https://github.com/jtkdvlp/transit/blob/master/dev/jtk_dvlp/your_project.cljs)
```clojure
(ns jtk-dvlp.your-project
(:require
...
[jtk-dvlp.transit :refer [clj->transit transit->clj]))(let [x {:my :cool, :data :yeah}]
(= x (clj->transit (transit-clj x))))
```## Appendix
I´d be thankful to receive patches, comments and constructive criticism.
Hope the package is useful :-)