connect-slashes
JSON →Trailing slash redirect middleware for Connect and Express.js. Version 1.4.0 is the current stable release, with no predictable cadence. It automatically appends or removes trailing slashes from URLs to enforce canonical URLs. Unlike alternatives like `express-slash`, it uses 301 redirects by default and supports custom base paths and headers. It only affects GET, HEAD, and OPTIONS requests to avoid data loss on POST/PUT.
Traffic · last 30 days ↓57% vs prev 7d
total hits 27
actors 7 distinct systems
last hit 15h ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇬🇧 United Kingdom
Resources
API endpoints
full doc /v1/registry/connect-slashes
compatibility /v1/registry/connect-slashes/compatibility