
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
koa-consistent-urls
Advanced tools
Redirect inconsistent urls middleware for koa.
www vs non-www.var consistentUrls = require('koa-consistent-urls')
var Koa = require('koa')
var app = new Koa()
app.use(consistentUrls({
www: false,
trailingSlash: false,
}))
Options are:
wwwWhether or not to prepend the hostname with www.. Fix & redirect if the request url doesn't match.
true: Force www. on the hostname.
false: Remove www. from hostname.
Default: false.
trailingSlashWhether or not to append a trailing slash (/) on the pathname. Fix & redirect if the request url doesn't match.
true: Force trailing slash (/) on the pathname.
false: Remove trailing slash (/) from pathname.
Default: false.
TODO. Feel free to PR.
FAQs
Redirect inconsistent urls middleware for koa
We found that koa-consistent-urls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.