stpro

0.2.2 • Public • Published

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:

  1. stpro.api
  2. stpro.state
  3. stpro.store

Package Sidebar

Install

npm i stpro

Weekly Downloads

0

Version

0.2.2

License

Apache-2.0

Unpacked Size

592 kB

Total Files

36

Last publish

Collaborators

  • passariello