@saransh184/snappy
v2.2.2
Published
A package to save and load scopes as needed
Downloads
18
Maintainers
Readme
Snappy
Save and load object values / function scopes.
Installation
$ npm i --save @saransh184/snappy
Example
>> let a={
x:1,
y:[1,2,3]
}
>> takeSnap('firstSnap', a);
>> a.y=[4,5];
>> console.log(a);
>> {
x:1,
y:[4,5]
}
>> restoreSnap('firstSnap', a);
>> console.log(a);
>> {
x:1,
y:[1,2,3]
}
Example
To see a small example of the library in work, see a live demo at - https://saranshgupta1995.github.io/PacMan/
Issues
To raise any issues, go through the github repo - https://github.com/saranshgupta1995/Snappy/issues