# reducker

> utilities to reduce redux boilerplate

Latest version **1.0.3** (published 2017-09-15) · ISC license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2017-09-15 |
| First published | 2017-09-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | erik sutherland |
| Maintainers | mrracoon |

## Links

- npm: https://www.npmjs.com/package/reducker
- Repository: https://github.com/MrRacoon/reducker
- Homepage: https://github.com/MrRacoon/reducker#readme
- Issues: https://github.com/MrRacoon/reducker/issues
- npm.io page: https://npm.io/package/reducker

## Recent versions

- 1.0.3 (latest) — 2017-09-15
- 1.0.2 — 2017-09-15
- 1.0.1 — 2017-09-15
- 1.0.0 — 2017-09-15

## README

reducker
========

[![Build Status](https://travis-ci.org/MrRacoon/reducker.svg?branch=master)](https://travis-ci.org/MrRacoon/reducker)

Utility functions for channeling your inner duck and reducing [redux][redux]
boilerplate.


## Install

```shell
npm i --save reducker
```

## Usage

If you use [duck-typing][duck-typing] in redux, you'll quickly start to notice
that many action creators are just the same trivial boilerplate repeated over
and over again. We can reduce this boilerplate by encapsulating the common code.

```javascript
import { actions } from 'reducker';

const ADD_TODO = 'APP/TODO/ADD'
const addTodo = payload => ({ type: ADD_TODO, payload })
```

now becomes:

```javascript
import { actions } from 'reducker';

const ADD_TODO = 'APP/TODO/ADD'
const addTodo = action.payload(ADD_TODO);
```

## Documentation

You can find documentation for each function [here][docs]

[docs]: https://mrracoon.github.io/reducker/
[redux]: http://redux.js.org/
[duck-typing]: https://hackernoon.com/my-journey-toward-a-maintainable-project-structure-for-react-redux-b05dfd999b5

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