# @f/combine-reducers

> Combines an object of reducers

Latest version **1.2.1** (published 2016-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/combine-reducers
pnpm add @f/combine-reducers
yarn add @f/combine-reducers
bun add @f/combine-reducers
```

## 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.2.1 |
| Published | 2016-02-17 |
| First published | 2015-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/combine-reducers
- Repository: https://github.com/micro-js/combine-reducers
- Homepage: https://github.com/micro-js/combine-reducers#readme
- Issues: https://github.com/micro-js/combine-reducers/issues
- npm.io page: https://npm.io/package/@f/combine-reducers

## Dependencies (2)

- [@f/clone-shallow](https://npm.io/package/@f/clone-shallow.md) ^1.1.2
- [@f/compose-reducers](https://npm.io/package/@f/compose-reducers.md) ^1.1.1

## Recent versions

- 1.2.1 (latest) — 2016-02-17
- 1.2.0 — 2015-12-16
- 1.1.1 — 2015-12-16
- 1.1.0 — 2015-12-16

## README

# combine-reducers

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Combines an object of reducers together to form a single, composite reducer. This function is identical to the one provided by [redux](https://github.com/rackt/redux) but it doesn't do the sanity checks that redux does, which allows you to do a few things like having multiple root reducers combined into one that you can't do with redux's assertions.

## Installation

    $ npm install @f/combine-reducers

## Usage

```js
var combineReducers = require('@f/combine-reducers')

combineReducers({
  counter1: counterReducer,
  counter2: counterReducer
})

function counterReducer (state, action) {
  if (action.type === INCREMENT) {
    return ++state
  }

  return state
}
```

## API

### combineReducers(reducers)

- `reducers` - An object containing a map of reducers to property names
- `defaultState` - Optional. Specify a default value for the state object. Useful for nesting `combineReducers` calls.

**Returns:** The combined reducer map as a single reducing function.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/combine-reducers.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/combine-reducers
[git-image]: https://img.shields.io/github/tag/micro-js/combine-reducers.svg
[git-url]: https://github.com/micro-js/combine-reducers
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/combine-reducers.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/combine-reducers

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