2.1.0 • Published 4 years ago

fake-storage v2.1.0

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

fake-storage

Memory-based storage to shim Web Storage.

Usage

Create a new instance:

const myStorage = new FakeStorage();

Then you can use your myStorage object much like the Storage interface:

myStorage.getItem('foo');
myStorage.setItem('foo', 'bar');
myStorage.removeItem('foo');
myStorage.key(2);
myStorage.clear();
myStorage.length;

License

MIT - see LICENSE

2.1.0

4 years ago

1.2.0

4 years ago

2.0.0

4 years ago

1.1.0

7 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago