stPRO
Store and state manager easy and powerful
Use "npm i stpro" to install
in the index use (only in the index... it's a global variable):
import "stpro"
type 'stpro' in your console to have a look about your stores (api, store, state,...)
example to set api data:
stpro.api.set("MyApi",[ { api: 'one'} , { api: 'two'} ] , { opt:false } ])
example to get api data:
stpro.api.get("MyApi")
example to update api data:
stpro.api.update("MyApi",[ { api: '1'} , { api: '2'} ] , { opt:false } ])
example to delete single api data:
stpro.api.delete("MyApi")
example to delete all api data:
stpro.api.clearAll()
You can use:
- stpro.api
- stpro.state
- stpro.store