# callbag-store

> A callbag implementation of a redux-like store

Latest version **2.0.0** (published 2019-04-06) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.0.0 |
| Published | 2019-04-06 |
| First published | 2018-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Risto Stevcev |
| Maintainers | ristostevcev |
| Keywords | callbag |

## Links

- npm: https://www.npmjs.com/package/callbag-store
- Repository: https://github.com/Risto-Stevcev/callbag-store
- Homepage: https://github.com/Risto-Stevcev/callbag-store#readme
- Issues: https://github.com/Risto-Stevcev/callbag-store/issues
- npm.io page: https://npm.io/package/callbag-store

## Recent versions

- 2.0.0 (latest) — 2019-04-06
- 1.1.0 — 2018-09-24
- 1.0.0 — 2018-04-08

## README

# callbag-store

[![Build Status](https://travis-ci.org/Risto-Stevcev/callbag-store.svg?branch=master)](https://travis-ci.org/Risto-Stevcev/callbag-store)
[![Latest release](https://img.shields.io/npm/v/callbag-store.svg?style=flat)](https://www.npmjs.com/package/callbag-store)
[![License](https://img.shields.io/npm/l/callbag-store.svg?style=flat)](https://github.com/Risto-Stevcev/callbag-store/blob/master/LICENSE)

A callbag implementation of a redux-like store

`npm install callbag-store`

## example

```js
const {createStore} = require('callbag-store')
const observe = require('callbag-observe')

const { dispatch, store } = createStore((state, action) => {
  switch (action.type) {
    case 'SET_FOOBAR':
      return { foobar: state.foobar + action.foobar }
    default:
      return state
  }
}, { foobar: 1 })

observe(console.log)(store)

dispatch({ type: 'SET_FOOBAR', foobar: 3 })
dispatch({ type: 'SET_FOOBAR', foobar: 7 })
```

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