Skip to content

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

License

Notifications You must be signed in to change notification settings

r7com/R7Storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

  • Clone the repo git clone git@github.com:r7com/R7Storage.git
	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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •