bstorage
Browser local-storage wrapper
Last updated 2 months ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bstorage 
SYNC missed versions from official npm registry.

bstorage

Build Status npm Version JS Standard

Browser local-storage wrapper

Installation

$ npm install bstorage --save

Usage

'use strict'

const {save, restore, purge} = require('bstorage')

// Set to localStorage
save('foo', {msg: 'This is foo'})

// Get from localStorage
console.log(restore('foo')) // -> { msg: 'This is foo' }

// Remove from localStorage
purge('foo')

License

This software is released under the MIT License.

Links

Current Tags

  • 2.0.3                                ...           latest (2 months ago)

10 Versions

  • 2.0.3                                ...           2 months ago
  • 2.0.2                                ...           2 months ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 10
Last Month 11
Dependencies (2)
Dev Dependencies (9)

Copyright 2014 - 2016 © taobao.org |