Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Teamweek/key-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Key-Storage

Features

  • Uses node.js require style modules
  • For browser, not node.js
  • Uses localStorage when possible
  • Uses cookies if localStorage is not available
  • Simple get, set and remove API

Installation

npm install key-storage

Usage

var storage = require('key-storage');

storage.set('key', 'value');
storage.get('key'); //=> 'value'
storage.remove('key');

About

Require style local storage wrapper with cookies fallback

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published