A powerful DX-first routing library for Cloudflare Workers.
npm install @neoaren/comet!logo
☄️ A powerful DX-first routing library for Cloudflare Workers.
-----
``ts
import { GET, server } from '@neoaren/comet'
const comet = server()
comet.route({ pathname: '/api/test/:id', method: GET }, async ({ event }) => {
// Business logic
return event.reply.ok({ id: event.params.id })
})
export default
fetch: comet.handler
}
`
| Emoji | Prefix | Description |
|--------------------------|----------------------------|------------------------------------------------------------|
| :zap: :zap: | :zap: :zap: | for implementing breaking functionality (semver major) |:zap:
| :zap: | | for implementing non-breaking functionality (semver minor) |:hammer:
| :hammer: | | for bug fixes and non-breaking improvements (semver patch) |:wrench:
| :wrench: | | for configurations |:vertical_traffic_light:
| :vertical_traffic_light: | | for tests |:memo:
| :memo: | | for documentations |:mag:
| :mag: | | for lint fixes |:recycle:
| :recycle: | | for non-breaking refactoring |:paperclip:
| :paperclip: | | for dependencies |:octocat:
| :octocat: | | for workflows |:construction:` | for experimental or temporary changes |
| :construction: |