bstorage

2.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i bstorage

Weekly Downloads

3

Version

2.0.4

License

MIT

Unpacked Size

31 kB

Total Files

40

Last publish

Collaborators

  • okunishinishi