localstorage-manipulator
v1.0.1
Published
Get and save data in localStorage easily.
Downloads
4
Readme
LocalStorage Manipulator
Get and save data in localStorage easily.
Using LocalStorage Manipulator you can:
- Get Data from localStorage;
- Save Data from localStorage;
Instalation:
Using like a node_module [server-side building (Browserify, etc)]
IN NODE_MODULES ROOT FOLDER:
$ npm install localstorage-manipulator --save
Using like a library
IN YOUR HTML:
<script src="download/localstorage/manipulator/here.js"></script>
Usage:
Using like a node_module [server-side building (Browserify, etc)]
var storage = require('localstorage-manipulator');
storage.saveData('test', {value : 123});
var result = storage.getData('test'); // { value : 123 }
Using like a library
saveData('test', { value : 123 });
var result = getData('test'); // { value : 123 }