# connect-route

> Simple and fast router for Connect

Latest version **0.1.5** (published 2015-03-03) · 0 weekly downloads

## Install

```sh
npm install connect-route
pnpm add connect-route
yarn add connect-route
bun add connect-route
```

## Health

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

Positive: has types package; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2015-03-03 |
| First published | 2012-03-08 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/connect-route) |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 34 |
| Author | Vadim M. Baryshev |
| Maintainers | baryshev |
| Keywords | router, connect |

## Links

- npm: https://www.npmjs.com/package/connect-route
- Repository: https://github.com/baryshev/connect-route
- Issues: https://github.com/baryshev/connect-route/issues
- npm.io page: https://npm.io/package/connect-route

## 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.1.5 (latest) — 2015-03-03
- 0.1.4 — 2014-01-29
- 0.1.3 — 2012-11-16
- 0.1.2 — 2012-08-11
- 0.1.1 — 2012-07-13
- 0.1.0 — 2012-03-08

## README

# About 
Simple and fast router for Connect

# Installation

	npm install connect-route

# Usage

```js
var
	connectRoute = require('connect-route'),
	connect = require('connect'),
	app = connect();

app.use(connectRoute(function (router) {
	router.get('/', function (req, res, next) {
		res.end('index');
	});

	router.get('/home', function (req, res, next) {
		res.end('home');
	});

	router.get('/home/:id', function (req, res, next) {
		res.end('home ' + req.params.id);
	});

	router.post('/home', function (req, res, next) {
		res.end('POST to home');
	});
}));

app.listen(3000);
```

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