@clocklimited/redirect-trailing-slash
v1.1.0
Published
Express middleware to redirect URLs with a trailing slash to the same URL without the slash
Downloads
451
Keywords
Readme
redirect-trailing-slash
Express middleware to redirect URLs with a trailing slash to the same URL without the slash
Installation
npm install redirect-trailing-slash --save
Usage
var express = require('express')
var app = express()
var redirectTrailingSlash = require('redirect-trailing-slash')
app.use(redirectTrailingSlash)
app.listen(3000)