# hr.history

> History and router utility for HappyRhino

Latest version **0.2.0** (published 2015-04-16) · 0 weekly downloads

## Install

```sh
npm install hr.history
pnpm add hr.history
yarn add hr.history
bun add hr.history
```

## 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.2.0 |
| Published | 2015-04-16 |
| First published | 2015-04-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | samypesse |

## Links

- npm: https://www.npmjs.com/package/hr.history
- Repository: https://github.com/HappyRhino/hr.history
- Issues: https://github.com/HappyRhino/hr.history/issues
- npm.io page: https://npm.io/package/hr.history

## Dependencies (3)

- [jquery](https://npm.io/package/jquery.md) *
- [hr.class](https://npm.io/package/hr.class.md) *
- [hr.utils](https://npm.io/package/hr.utils.md) *

## Recent versions

- 0.2.0 (latest) — 2015-04-16
- 0.1.0 — 2015-04-05

## README

hr.history [![Build Status](https://travis-ci.org/HappyRhino/hr.history.png?branch=master)](https://travis-ci.org/HappyRhino/hr.history)
=============================

> History and router utility for HappyRhino

## Installation

```
$ npm install hr.history
```

## Documentation

#### Create a router

```js
var history = require("hr.history");

var router = new history.Router({
    routes: {
        "post/:id": function(postId) {
            // Do something with the post id
        }
    }
});

// Start handling history
router.start();
```

#### Navigate

```js
router.navigate("post/:id", { id: "hello-world" });
```

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