bstorage
Browser local-storage wrapper
Last updated 9 days ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ 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

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 28
Last Day 0
Last Week 14
Last Month 32
Dependencies (2)
Dev Dependencies (9)

Copyright 2014 - 2017 © taobao.org |