npm.io
0.6.0 • Published 6 years ago

@faebzz/localstore

Licence
GPL-3.0-or-later
Version
0.6.0
Deps
0
Size
38 kB
Vulns
0
Weekly
0

localStore

localStore is a simple JavaScript localStorage manager, where you don't have to worry about types anymore. If you wanna save an object you are now able to without any afterwards parsing.

Getting started

npm install --save @faebzz/localstore

Usage

import localStore from '@faebzz/localstore';

// Set a value without stringify
localStore.set('myArray', [1,2,3,4]);

// Get a value without parse
var result = localStore.get('myArray').length;

Keywords