# roumuter

> Support push state to history without navigate.

Latest version **0.0.3** (published 2019-05-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-05-28 |
| First published | 2019-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 35.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fozg |
| Maintainers | fozg |

## Links

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

## Dependencies (1)

- [query-string](https://npm.io/package/query-string.md) ^6.5.0

## Recent versions

- 0.0.3 (latest) — 2019-05-28
- 0.0.2 — 2019-05-28
- 0.0.1 — 2019-05-28

## README

# roumuter
Support push state to history without navigate.

## usage
import lib:
```js
import Roumuter from 'roumuter'
```
create Roumuter store and subscribe
```js
var Roumuter = new Roumuter({
  path: '', // optional
  params: ["sort", "order"] // support object, arrays of string key
})

// subscribe changed
Roumuter.subscribe(params => {
  // => params: {sort: "..", order: ".."}
  // all search query string u define at `params` of Roumuter.
})
```

navigate
```js
Roumuter.navigate({sort: "Created", order: "ASC"});
// or
Roumuter.navigateTo(path, {sort: "Created", order: "ASC"});
```

// unsubscribe
```js
Roumuter.unsubscribe();
```

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