1.0.1 • Published 9 years ago

key-storage v1.0.1

Weekly downloads
70
License
-
Repository
github
Last release
9 years ago

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');