bstorage

Browser local-storage wrapper

Usage no npm install needed!

<script type="module">
  import bstorage from 'https://cdn.skypack.dev/bstorage';
</script>

README

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