Skip to content
/ rt Public

Minimal HTTP router library based on the URLPattern API.

Notifications You must be signed in to change notification settings

FartLabs/rt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions

Minimal HTTP router library based on the URLPattern API.

Usage

import { createRouter } from "@fartlabs/rt";

const router = createRouter()
  .get("/", () => new Response("Hello, World!"))
  .default(() => new Response("Not found", { status: 404 }));

Deno.serve((request) => router.fetch(request));

Deno

1. Install Deno.

2. Start a new Deno project.

deno init

3. Add rt as a project dependency.

deno add @fartlabs/rt

Contribute

We appreciate your help!

Style

Run deno fmt to format the code.

Run deno lint to lint the code.


Developed with ❤️ @FartLabs

About

Minimal HTTP router library based on the URLPattern API.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published