# akari-manager

> State and Messages Manager

Latest version **1.0.7** (published 2022-11-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install akari-manager
pnpm add akari-manager
yarn add akari-manager
bun add akari-manager
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-11-14 |
| First published | 2022-11-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | diegokraenau |

## Links

- npm: https://www.npmjs.com/package/akari-manager
- Repository: https://github.com/DiegoKraenau/akari-manager
- Homepage: https://github.com/DiegoKraenau/akari-manager#readme
- Issues: https://github.com/DiegoKraenau/akari-manager/issues
- npm.io page: https://npm.io/package/akari-manager

## Dependencies (1)

- [rxjs](https://npm.io/package/rxjs.md) ^7.5.7

## Recent versions

- 1.0.7 (latest) — 2022-11-14
- 1.0.6 — 2022-11-14
- 1.0.5 — 2022-11-14
- 1.0.4 — 2022-11-14
- 1.0.3 — 2022-11-14
- 1.0.2 — 2022-11-14
- 1.0.1 — 2022-11-14
- 1.0.0 — 2022-11-13

## README

# Akari - Manager (@Autor: Diego Kraenau)


A library to facilitate the management of states and messages

## Create Store
First of all, you will need to create the store. The function useAkariStateProvider has a default parameter that means the initial state.

```
const store = useAkariStateProvider({
  user: {
    name: 'John',
    lastName: 'Doe'
  },
});
```

## Methods
The followins methos are:

```
    * store.getState(property?: string): any | Allows to get all state or by a specific name
    * store.setState(key: string, value: any, emitValue: boolean = true): void | Allows to add a value to the state
    * store.listenState(key: string): Observable<any>) | Listen when the state changes
    * store.addState(key: string, value: any): void | Adding new state to store
```

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