undo

Simple Undo/Redo system that takes a regular json object and implements an efficient diff/patch snapshotting.

Usage no npm install needed!

<script type="module">
  import undo from 'https://cdn.skypack.dev/undo';
</script>

README

Undo

undo uses JSON diffs/patching to make an easy to use undo/redo library where you only have to write the do part.

This is a work in progress

Installation

  npm install undo

Usage

Simple Example

Coming soon

API

Coming soon

Todos

  • Write tests
  • Write simple debugging system for creating histograms of total memory size, patches sizes, and patching performance.

Credits

Thanks to beneidel for his great jsondiffpatch module.