lyte-locals
v1.0.5
Published
Convenience methods for local-storage and sessions tokens
Downloads
3
Maintainers
Readme
Locals
Convenience methods for local-storage and sessions tokens
Usage example
- Local Storage:
- import locals from 'locals'
- locals.set(key, value) // set by key and value
- locals.get(key) // get by key
- locals.clr() //clear all local-storage
- locals.del(key) //clear single item by key
- locals.bool(val) // str arg to boolean true|false
- Cookie Storage:
- cookie.set(key, val, exp, domain)
- cookie.get(key)
- cookie.del(key, domain)