# martinrouter

> Small router class

Latest version **0.3.0** (published 2018-05-06) · MIT license · 0 weekly downloads

## Install

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

## 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.3.0 |
| Published | 2018-05-06 |
| First published | 2018-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kauplan Agency |
| Maintainers | kauplan |
| Keywords | router |

## Links

- npm: https://www.npmjs.com/package/martinrouter
- npm.io page: https://npm.io/package/martinrouter

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 0.3.0 (latest) — 2018-05-06
- 0.2.0 — 2018-05-04
- 0.1.0 — 2018-05-04

## README

MartinRouter
============


Overview
--------

MartinRouter is a simple router class, less than 100 lines.


Example
-------

```javascript
const MartinRouter = require('martinrouter');

let router = new MartinRouter();
router.mount('/orders'     , funcOrders);
router.mount('/orders/{id}', funcOrderDetail);
console.log(router.route('/orders'));
               //=> [funcOrders, [], []]
console.log(router.route('/orders/123'));
               //=> [funcOrderDetail, ['id'], ['123']]
```


License
-------

MIT License


Copyright
---------

copyright(c) 2018 Kauplan Agency all rights reserved.

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