@neoaren/comet
v3.8.2
Published
A powerful DX-first routing library for Cloudflare Workers.
Maintainers
Readme

Getting started
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 <ExportedHandler>{
fetch: comet.handler
}Documentation
A proper documentation for Comet is work in progress.
Contribution guide
Use commit names with the following prefixes to indicate their purpose
| 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: | :construction: | for experimental or temporary changes |
