1.0.1 • Published 7 years ago

localstorage-manipulator v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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 }