1.3.0 • Published 1 year ago

@entva/express-trailingslash v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@entva/express-trailingslash

ExpressJS middleware that redirects requests with trailing slashes to a clean one without it

Usage:

app.use(require('@entva/express-trailingslash')());

When used together with serve-static, pass redirect: false option to it to avoid conflicts:

app.use(require('serve-static')(`${__dirname}/public`, { redirect: false }));
1.2.0

1 year ago

1.1.0

1 year ago

1.3.0

1 year ago

1.0.0

2 years ago