https://github.com/4lch4/elysia-route-printer
A collection of utilities for use in an API built w/ the Elysia framework.
https://github.com/4lch4/elysia-route-printer
Last synced: 3 months ago
JSON representation
A collection of utilities for use in an API built w/ the Elysia framework.
- Host: GitHub
- URL: https://github.com/4lch4/elysia-route-printer
- Owner: 4lch4
- Created: 2023-11-15T06:26:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T20:56:45.000Z (over 1 year ago)
- Last Synced: 2025-02-26T17:52:54.607Z (3 months ago)
- Language: TypeScript
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elysia Route Printer
This is a simple tool to print the routes of an API made with the Elysia framework.
## Usage
```typescript
import { Elysia } from 'elysia'
import { printRoutes } from 'elysia-route-printer'export const app = new Elysia().get('/hello', () => 'OK').listen(8080)
printRoutes(app.routes)
console.log('Server is online!')
```