slim-store

state manager with proxy

Usage no npm install needed!

<script type="module">
  import slimStore from 'https://cdn.skypack.dev/slim-store';
</script>

README

npm version bundle size install size codecov build status Cypress.io tests Licence

Slim

Centralized State-Non-Editable State Management With Proxy.

Documentation

QuickStart

Pipeline

Blew picture just only explain how the state transfer. pipeline

Attention: hook "beforeSet" only work while Proxy avaliable.

Installation

Scripts Tag

Get the newest version

<!-- slim -->
<script src="https://unpkg.com/slim-store@latest/slim.min.js"></script> 

<!-- vslim: slim in vue -->
<script src="https://unpkg.com/vslim@latest/vslim.min.js"></script> 

<!-- rslim: slim in react -->
<script src="https://unpkg.com/rslim@latest/rslim.min.js"></script> 

NPM

# slim
npm install slim-store

# vslim
npm install vslim

# rslim
npm install rslim

Examples

# install dependencies
npm install

# run server
npm run demo

Contributing

Licence

Apache Licence