easy-undo-redo

Easy Undo Redo

Usage no npm install needed!

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

README

What is Easy Undo Redo?

Get the most easiest undo redo feature for your npm project

Installation

npm install easyUndoRedo --save

Initial easyUndoRedo() with some options paramiter.
import {easyUndoRedo} from 'easy-undo-redo';

var UndoRedo = new easyUndoRedo({
   stackLength : 20,
   initialValue : "Your initial data"
});
UndoRedo.save("Your updated data");
UndoRedo.undo(); //returns undo result
UndoRedo.redo(); //returns redo result