0.3.0 • Published 3 years ago

tsaphod v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Tsaphod

Tsaphod is a TypeScript fork of Zaphod, without the stalled bind operator proposal

Clojure's immutable data API for JavaScript's own data structures.

import { inc, update } from 'tsaphod';

const state = { count: 0 };

update(state, 'count', inc)
// => { count: 1 }

However, you don't need to know Clojure to make the most of Tsaphod. This library is just a set of JavaScript functions that make working with immutable data more fun!

Find the docs, cheatsheet and rationale at the website.

npm install tsaphod

Note: Tsaphod is an ES module and requires Node >= 12.20