{"library":"connect-slashes","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.4.0","tags":["javascript","trailing","slash","connect","middleware","express"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-slashes","imports":["import slashes from 'connect-slashes'","const slashes = require('connect-slashes')","import slashes from 'connect-slashes'"]},{"cmd":"yarn add connect-slashes","imports":[]},{"cmd":"pnpm add connect-slashes","imports":[]}],"homepage":null,"github":"https://github.com/avinoamr/connect-slashes","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-slashes","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/connect-slashes/compatibility"}}