# miniprogramx

> MiniProgramX

Latest version **1.0.0** (published 2022-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install miniprogramx
pnpm add miniprogramx
yarn add miniprogramx
bun add miniprogramx
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-04-07 |
| First published | 2022-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zhong Li |
| Maintainers | zhongli_npm |
| Keywords | miniprogram, store |

## Links

- npm: https://www.npmjs.com/package/miniprogramx
- Repository: https://github.com/website-element/miniprogramx
- Homepage: https://github.com/website-element/miniprogramx#readme
- Issues: https://github.com/website-element/miniprogramx/issues
- npm.io page: https://npm.io/package/miniprogramx

## Recent versions

- 1.0.0 (latest) — 2022-04-07

## README

# MiniProgramX

## Installation

```sh
$ npm install miniprogramx
```

## Example

+ MiniProgramStore
```js
import MiniProgramX from "miniprogramx"

export default new MiniProgramX.Store({
  modules: {
    auth: {
       state: {
         loginInfo: undefined
       },
       mutations: {
         updateLoginInfo: (state, loginInfo) => {
           state.loginInfo = loginInfo;
         },     
       },
       actions: {
         updateLoginInfo: ({ commit }, loginInfo) => {
           commit("updateLoginInfo", loginInfo);
         }
       }
    },
  }
});
```
+ app.js
```js
import store from "store"

App({
  store
})
```

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/miniprogramx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
