# @zebp/routy

> A simple request router

Latest version **0.4.0** (published 2023-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @zebp/routy
pnpm add @zebp/routy
yarn add @zebp/routy
bun add @zebp/routy
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2023-03-04 |
| First published | 2022-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 46 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | zebp |

## Links

- npm: https://www.npmjs.com/package/@zebp/routy
- Repository: https://github.com/zebp/routy
- Homepage: https://github.com/zebp/routy#readme
- Issues: https://github.com/zebp/routy/issues
- npm.io page: https://npm.io/package/@zebp/routy

## Recent versions

- 0.4.0 (latest) — 2023-03-04
- 0.3.1 — 2023-03-04
- 0.3.0 — 2022-12-05
- 0.2.0 — 2022-04-24
- 0.1.1 — 2022-04-23

## README

# routy

A simple and extendable Router for Node, Deno, and Cloudflare Workers.

## Example

```typescript
import { WebRouter } from "@zebp/routy";

const router = new WebRouter().get(
  "/greet/:name",
  (_req, _data, ctx) => new Response(`Hello, ${ctx.params.name}!`)
);

const response = await router.route(
  new Request("https://example.com/greet/user")
);
```

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