import Storage from '@derekalangilbert/Storage'
// or
Import { Get, Set, Update, Delete, Flush } from '@derekalangilbert/Storage'
const fooObject = {hello: 'world'}
Storage.set('myStorage', foo, fooObject)
Storage.set('myStorage', anotherFoo, 'cool new string')
Storage.get() // returns the whole storage object already parsed
// myStorage : {
// foo: {hello: 'world'},
// anotherFoo: 'cool new string'
// }
Storage.get('anotherFoo') //returns 'cool new string'
-
Notifications
You must be signed in to change notification settings - Fork 1
DerekAlanGilbert/storage
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Lightweight layer on top of the local storage api.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published