glove

Frontend data glove box based on window object

Usage no npm install needed!

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

README

Glove

NPM version NPM download

LOGO

📦 Glove is a library help you store data with window object uniformity. It just like a glove box.

Usage

Install

CommonJS:

$ npm install glove

use case

var store = require('glove').pick('yourGloveBox');

// store in window object
store.set('name', 'Randy');
store.get('name') // Randy

// store in localStorage
store.$set('historyName', 'djyde');
store.$get('historyName') // djyde

License

MIT License