1.0.5 • Published 4 years ago

lyte-locals v1.0.5

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
4 years ago

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)
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago