Skip to content

meowuu/worker-router

Repository files navigation

worker-router

Gitpod Ready-to-Code Node.js CI codecov npm version

worker-router is a light router util, recommend use in Cloudflare Worker

Install

npm install @meowuu/worker-router
# or use yarn
yarn add @meowuu/worker-router

Usage

import Router from '@meowuu/worker-router'

const router = new Router()

router.get('/home', () => {

})

const resp = await router.route(request)

Todos

  • middleware order
  • redirect

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published