Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect-slashes

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-slashes - npm Package Compare versions

Comparing version 0.0.11 to 1.0.2

.npmignore

6

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc