# s2s-helper-get-reducer-case

> Helper function to get reducer case

Latest version **1.0.1** (published 2019-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install s2s-helper-get-reducer-case
pnpm add s2s-helper-get-reducer-case
yarn add s2s-helper-get-reducer-case
bun add s2s-helper-get-reducer-case
```

## 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.1 |
| Published | 2019-07-29 |
| First published | 2017-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 265 |
| Author | akameco |
| Maintainers | akameco |

## Links

- npm: https://www.npmjs.com/package/s2s-helper-get-reducer-case
- Repository: https://github.com/akameco/s2s
- Homepage: https://github.com/akameco/s2s#readme
- Issues: https://github.com/akameco/s2s/issues
- npm.io page: https://npm.io/package/s2s-helper-get-reducer-case

## Dependencies (2)

- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.4.4
- [@babel/traverse](https://npm.io/package/@babel/traverse.md) ^7.4.4

## Recent versions

- 1.0.1 (latest) — 2019-07-29
- 1.0.0 — 2019-04-15
- 0.2.6 — 2017-12-02
- 0.2.5 — 2017-11-12
- 0.2.4 — 2017-11-08
- 0.2.3 — 2017-11-07
- 0.2.2 — 2017-11-05
- 0.2.1 — 2017-10-21
- 0.2.0 — 2017-10-04
- 0.1.1 — 2017-10-02
- 0.1.0 — 2017-10-02

## README

# s2s-helper-get-reducer-case

> Helper function to get reducer case

## API

```js
import helper from 's2s-helper-get-reducer-case'

const fixture = `
export default function(state, action) {
  switch(action.type) {
    case Actions.INCREMENT:
      return { count: state + 1}
    case Actions.DECREMENT:
      return { count: state - 1}
    default:
      return state
  }
}
`

helper(fixture)
// => ['INCREMENT', 'DECREMENT']
```

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