# i-redux-navigation

> navigation solution for redux apps

Latest version **0.0.18** (published 2017-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install i-redux-navigation
pnpm add i-redux-navigation
yarn add i-redux-navigation
bun add i-redux-navigation
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.18 |
| Published | 2017-10-12 |
| First published | 2016-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | ebaranov.dev@gmail.com |
| Maintainers | ebaranov |

## Links

- npm: https://www.npmjs.com/package/i-redux-navigation
- npm.io page: https://npm.io/package/i-redux-navigation

## Dependencies (4)

- [qs](https://npm.io/package/qs.md) 6.3.1
- [history](https://npm.io/package/history.md) ^4.6.0
- [resolve-pathname](https://npm.io/package/resolve-pathname.md) ^2.0.0
- [flux-standard-action](https://npm.io/package/flux-standard-action.md) ^0.6.1

## Recent versions

- 0.0.18 (latest) — 2017-10-12
- 0.0.17 — 2017-03-11
- 0.0.16 — 2017-03-03
- 0.0.15 — 2017-03-03
- 0.0.13 — 2016-10-24
- 0.0.12 — 2016-10-24
- 0.0.11 — 2016-10-24
- 0.0.10 — 2016-10-23
- 0.0.9 — 2016-10-23
- 0.0.8 — 2016-10-23
- 0.0.6 — 2016-10-23
- 0.0.5 — 2016-10-23
- 0.0.4 — 2016-10-23
- 0.0.3 — 2016-10-23

## README

# Navigation solution for redux apps

## Installation

```bash
npm install --save i-redux-navigation
```

## Usage

##### navigation.js
```javascript
import createNavigation from 'i-redux-navigation';

export const { reducer, history, middleware, actions } = createNavigation();
```

##### final-reducer.js
```javascript
import { combineReducers } from 'redux';
import { reducer as navigationReducer } from './navigation';

export default combineReducers({
  navigation: navigationReducer,
});
```

##### navigation-actions.js
```javascript
import { actions } from './navigation';

export const pushState = (...args) => (dispatch) => dispatch(actions.push(...args));
export const replaceState = (...args) => (dispatch) => dispatch(actions.replace(...args));
export const go = (n) => (dispatch) => dispatch(actions.go(n));
export const goBack = () => (dispatch) => dispatch(actions.goBack());
export const goForward = () => (dispatch) => dispatch(actions.goForward());
export const canGo = (n) => (dispatch) => dispatch(actions.canGo(n));
```

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