Skip to content

DerekAlanGilbert/storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage


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'

About

Lightweight layer on top of the local storage api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published