2.0.4 • Published 5 years ago

bstorage v2.0.4

Weekly downloads
258
License
MIT
Repository
github
Last release
5 years ago

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

2.0.4

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago