# routing2

> Parse HTTP Routing definition

Latest version **0.0.15** (published 2019-06-14) · MIT license · 0 weekly downloads

## Install

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

## 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.15 |
| Published | 2019-06-14 |
| First published | 2017-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 56.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | lsong |
| Maintainers | song940 |
| Keywords | route, http |

## Links

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

## 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.0.15 (latest) — 2019-06-14
- 0.0.9 (next) — 2018-10-19
- 0.0.14 — 2019-05-27
- 0.0.13 — 2019-01-11
- 0.0.12 — 2019-01-11
- 0.0.11 — 2019-01-11
- 0.0.10 — 2019-01-08
- 0.0.8 — 2018-10-19
- 0.0.7 — 2018-07-04
- 0.0.6 — 2018-07-04
- 0.0.5 — 2018-07-04
- 0.0.4 — 2018-06-29
- 0.0.3 — 2018-06-29
- 0.0.2 — 2017-08-24
- 0.0.1 — 2017-08-08

## README

## routing2 [![routing2](https://img.shields.io/npm/v/routing2.svg)](https://npmjs.org/routing2)

> Parse HTTP Routing definition

### Define

<img src="./define.png" width="50%" >

### Installation

```bash
$ npm install routing2
```

### Example

```js
const { parse } = require('routing2');

const routes = parse(`get /:name => home#index , a=1, b=2`);

console.log(routes); // ->
{
  method: 'get',
  path: '/:name',
  controller: 'home',
  action: 'index'
}
```

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### ISC

This work is licensed under the [ISC license](./LICENSE).

---

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