# redux-actions-namespace

> Syntax sugar for using namespaces with redux-actions.

Latest version **1.0.1** (published 2017-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-actions-namespace
pnpm add redux-actions-namespace
yarn add redux-actions-namespace
bun add redux-actions-namespace
```

## 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 | 2017-06-03 |
| First published | 2017-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrei Dotsenko |
| Maintainers | fiberthrone |
| Keywords | redux, actions, redux-actions, namespace |

## Links

- npm: https://www.npmjs.com/package/redux-actions-namespace
- Repository: https://github.com/fiberthrone/redux-actions-namespace
- Homepage: https://github.com/fiberthrone/redux-actions-namespace#readme
- Issues: https://github.com/fiberthrone/redux-actions-namespace/issues
- npm.io page: https://npm.io/package/redux-actions-namespace

## Recent versions

- 1.0.1 (latest) — 2017-06-03
- 1.0.0 — 2017-06-03

## README

# redux-actions-namespace

Syntax sugar for using namespaces with [redux-actions](https://github.com/acdlite/redux-actions).

## Usage

```js
import { createNamespace } from 'redux-actions-namespace';

const { createAction, createActions } = createNamespace('UI/DROPDOWN/');
const toggle = createActions('TOGGLE');
const { show, hide } = createActions('SHOW', 'HIDE');
```

The code above is equivalent for this:

```js
import { createAction, createActions } from 'redux-actions';

const NS = 'UI/DROPDOWN/';
const toggle = createActions(`${NS}TOGGLE`);
const { show, hide } = createActions(`${NS}SHOW`, `${NS}HIDE`);
```

## License

MIT.

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