2.0.4 • Published 5 years ago
bstorage v2.0.4
bstorage
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.