Uber simple route middleware for Koa.js applications with path parameter support
Overall
score
100%
Middleware integration with Koa
GET route definition
100%
100%
POST route definition
33%
100%
DELETE route definition
33%
100%
Multi-parameter route
100%
86%
Parameter extraction
100%
100%
Middleware integration
100%
100%
Context usage
100%
100%
HTTP method routing (GET, POST, PUT, DELETE, etc.)
GET method routing
100%
100%
POST method routing
100%
100%
PUT method routing
100%
100%
DELETE method routing
100%
100%
Parameter extraction
100%
100%
Advanced path-to-regexp options and configuration
Uses koa-route
100%
100%
Partial matching option
0%
100%
Path parameter capture
0%
100%
Multiple version routes
100%
100%
Correct response format
100%
100%
Basic parameterized routes
route.get() usage
100%
100%
Parameter syntax
100%
100%
Single parameter extraction
100%
100%
Multiple parameter extraction
100%
100%
Middleware integration
100%
100%
Optional route parameters
Optional category parameter
0%
100%
Optional format parameter
0%
100%
Parameter presence handling
25%
100%
Route handler signature
100%
100%
Koa middleware integration
100%
100%
Parameter extraction from URLs
GET route with parameter
100%
100%
GET stats route
100%
100%
DELETE route with parameter
100%
100%
POST route definition
100%
100%
Parameter usage in handlers
100%
100%
URL parameter decoding and encoding
Uses route.get()
100%
100%
Parameterized path pattern
100%
100%
Accesses decoded parameter
33%
100%
Redirects correctly
100%
100%
Path pattern matching with parameters
Static path routing
100%
100%
Single parameter extraction
100%
100%
Handler parameter usage
100%
100%
Optional parameter syntax
100%
100%
Multiple parameter paths
100%
100%
Automatic URL decoding
100%
100%
Automatic HEAD request handling for GET routes
Uses route.get()
100%
100%
Single route definition
0%
100%
Parameter extraction
100%
100%
Proper middleware usage
100%
100%
Regex-based path constraints
Admin exact match
100%
100%
Power user pattern
100%
100%
Numeric ID constraint
100%
100%
Fallback unconstrained route
100%
100%
Parameter extraction
90%
100%
Install with Tessl CLI
npx tessl i tessl/npm-koa-route