# @easy-peasy/core

> Standalone version of easy-peasy

Latest version **3.2.6** (published 2020-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @easy-peasy/core
pnpm add @easy-peasy/core
yarn add @easy-peasy/core
bun add @easy-peasy/core
```

## 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 | 3.2.6 |
| Published | 2020-01-16 |
| First published | 2020-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 10 |
| Unpacked size | 398.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Cyriac Béré |
| Maintainers | cyriacbr |
| Keywords | redux, state, typescript |

## Links

- npm: https://www.npmjs.com/package/@easy-peasy/core
- Repository: https://github.com/cyriacbr/easy-peasy-packages
- Homepage: https://github.com/cyriacbr/easy-peasy-packages#readme
- npm.io page: https://npm.io/package/@easy-peasy/core

## Dependencies (10)

- [redux](https://npm.io/package/redux.md) ^4.0.4
- [debounce](https://npm.io/package/debounce.md) ^1.2.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2
- [immer-peasy](https://npm.io/package/immer-peasy.md) 3.1.3
- [redux-thunk](https://npm.io/package/redux-thunk.md) ^2.3.0
- [ts-toolbelt](https://npm.io/package/ts-toolbelt.md) ^6.0.1
- [memoizerific](https://npm.io/package/memoizerific.md) ^1.11.3
- [shallowequal](https://npm.io/package/shallowequal.md) ^1.1.0
- [is-plain-object](https://npm.io/package/is-plain-object.md) ^3.0.0
- [symbol-observable](https://npm.io/package/symbol-observable.md) ^1.2.0

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 3.2.6 (latest) — 2020-01-16

## README

# Standalone version

```
npm install @easy-peasy/core
yarn add @easy-peasy/core
```   

## Basic Usage

```js
import { createStore, action } from '@easy-peasy/core';

const store = createStore({
  todos: {
    items: ['JavaScript'],
    add: action((state, payload) => {
      state.items.push(payload)
    })
  }
});

store.getActions().add('TypeScript');
store.getState().items; // ['JavaScript', 'TypeScript']
```

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