localstorage component
$ component install pgherveou/store
get the default instance (without prefix)
get a new store with a prefix added to localstorage keys
set a key, call JSON.stringify to serialize value returns 0 when it fails and data.length otherwise undefined value are saved as null
set a val, as string
get a key call JSON.parse to deserialize value
get a key, as string
save the prefix value shortcut for store.set(store._, val)
unset a key
clear all key matching prefix
clear all localstorage
MIT