Have ideas to improve npm?Join in the discussion! »

    key-storage

    1.0.1 • Public • Published

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

    Install

    npm i key-storage

    DownloadsWeekly Downloads

    99

    Version

    1.0.1

    License

    none

    Last publish

    Collaborators

    • avatar