undo-redo-vuex
Version:
A Vuex plugin for module namespaced undo and redo functionality. This plugin takes inspiration from and extends the work of [vuex-undo-redo](https://github.com/anthonygore/vuex-undo-redo).
37 lines (26 loc) • 582 B
Markdown
next: ./usage
# Installation
First add the package to your project by adding it via yarn or npm:
**Install it with Yarn:**
```shell script
yarn add undo-redo-vuex
```
**or with NPM:**
```shell script
npm i undo-redo-vuex
```
## Import as Module
Simply import the module in your project:
```javascript
import undoRedo from "undo-redo-vuex";
```
## Use in Browser
Or you can also load the plugin in the browser by using the following snippet:
```html
<script
type="text/javascript"
src="node_modules/undo-redo-vuex/dist/undo-redo-vuex.min.js"
></script>
```