Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

77 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R7Storage

TravisCI Code Climate

About

R7Storage is a little library for data storage in the client side. It uses localStorage with fallback to cookies.

Usage

	R7Storage.setItem("user", "Guilherme"); //return true
	R7Storage.setItem("user"); //return Error
	R7Storage.setItem(); //return Error

	R7Storage.getItem("user"); //return "Guilherme"
	R7Storage.getItem("user2"); //return false
	R7Storage.getItem(); //return Error

	R7Storage.deleteItem("user"); //return true
	R7Storage.deleteItem("userFail"); //return false
	R7Storage.deleteItem(); //return Error

	R7Storage.hasItem("user"); //return true
	R7Storage.hasItem("userFail"); //return false
	R7Storage.hasItem(); //return Error

Browser Support

  • Internet Explorer: 6+
  • Chrome: All versions
  • Firefox: All versions

Contribute

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -A 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

Running tests

  • Run npm install
  • Run gulp test

Building file

  • Run npm install
  • Run gulp build

About

R7Storage handles cross-browser data storage in the client side!

Resources

Stars

2 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages