# nast-store

> Library for managing vuex.

Latest version **1.0.7** (published 2022-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install nast-store
pnpm add nast-store
yarn add nast-store
bun add nast-store
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-01-04 |
| First published | 2021-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 9.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexey |
| Maintainers | alexey-renova |
| Keywords | vue, vuex, store |

## Links

- npm: https://www.npmjs.com/package/nast-store
- Repository: https://github.com/renova-st/nast
- Homepage: https://github.com/renova-st/nast#readme
- Issues: https://github.com/renova-st/nast/issues
- npm.io page: https://npm.io/package/nast-store

## Dependencies (4)

- [nast](https://npm.io/package/nast.md) ^1.0.*
- [vuex](https://npm.io/package/vuex.md) ^3.6.*
- [lodash](https://npm.io/package/lodash.md) ^4.17.*
- [vuex-persist](https://npm.io/package/vuex-persist.md) ^3.1.*

## Recent versions

- 1.0.7 (latest) — 2022-01-04
- 1.0.6 — 2021-08-05
- 1.0.5 — 2021-08-05
- 1.0.3 — 2021-07-07
- 1.0.2 — 2021-07-07
- 1.0.1 — 2021-07-07

## README

# nast-store

## Installation
```
npm i -S nast-store
```

## Prepare
```
import NastStore from 'nast-store'
import Vue from 'vue'
import App from './App'

const stores = {
  app: {
    state: {
      user: {},
    },
    mutations: {
      user(state, value) {
        state.user = value
      },
    },
    namespaced: true,
  },
}

const store = new NastStore(Vue, stores)

global.$app = {
  store,
}

new Vue({
  store: store.store(),
  render: (h) => h(App),
}).$mount('#app')
```

## Basic usage
```
$app.store.mutation('app.user', {
  username: 'admin',
  fullName: 'Administrator',
})

$app.store.state('app.user').fullName
```

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