Skip to content

jc1arke/javascript-localstorage-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Just a simple HTML5 localStorage wrapper written in Javascript

To use, just simply do the following:

<script src='/path/to/the/localstorage/js/file/utils.storage.js'></script>
<script>
  var storage = utils.storage;
  storage.init("mynamespace", true);
  storage.save("mypersonalvar", {someindex: 'somevalue'});
  if( storage.exists("mypersonalvar") ) {
    var result = JSON.parse( storage.read("mypersonalvar") );
    alert( "someindex: " + result.someindex );
  }
</script>

About

Just a simple HTML5 localStorage wrapper in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published