connect-slashes
Advanced tools
Comparing version 0.0.11 to 1.0.2
{ | ||
"name": "connect-slashes", | ||
"version": "0.0.11", | ||
"version": "1.0.2", | ||
"description": "Trailing slash redirect middleware for Connect", | ||
@@ -15,3 +15,5 @@ "keywords": [ "trailing", "slash", "connect", "middleware" ], | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"mocha": "~1.14.0" | ||
}, | ||
"main": "index", | ||
@@ -18,0 +20,0 @@ "license": "MIT", |
connect-slashes | ||
=============== | ||
Trailing slash redirect middleware for Connect. Useful for creating canonical urls in your Node.js applications. | ||
Trailing slash redirect middleware for Connect and Express.js. Useful for creating canonical urls in your Node.js applications. | ||
@@ -34,2 +34,6 @@ ## Installation | ||
1. Only GET requests will be redirected (to avoid losing POST/PUT data) | ||
2. This middleware will append or removes a trailing slash to all request urls. This includes filenames (/app.css => /app.css/), so it may break your static files. Make sure to `.use()` this middleware only after the `connect.static()` middleware. | ||
2. This middleware will append or removes a trailing slash to all request urls. This includes filenames (/app.css => /app.css/), so it may break your static files. Make sure to `.use()` this middleware only after the `connect.static()` middleware. | ||
## LICENSE | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8383
7
150
1
39
1
1