Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Histable

Build Status npm Coverage Status

A no external dependency module that maintains the history of state changes.

Installation

npm i histable --save

Usage

const histable = require('histable')
const history = histable.create()
history.push(1)
history.push(2)
history.push(3)
history.undo() // 2
history.undo() // 1
history.undo() // undefined

API DOCUMENTATION


Why this name?

History + Immutable = Histable — so couldn't think of anything better.

About

A no external dependency module that maintains the history of state changes.

Resources

Packages

No packages published
You can’t perform that action at this time.