Gathering detailed insights and metrics for express-naked-redirect
Gathering detailed insights and metrics for express-naked-redirect
Gathering detailed insights and metrics for express-naked-redirect
Gathering detailed insights and metrics for express-naked-redirect
expressNakedRedirect is a middleware for Express that redirects naked(root domain) request to www or its reverse.
npm install express-naked-redirect
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
49 Commits
2 Forks
1 Watchers
11 Branches
2 Contributors
Updated on Sep 08, 2023
Latest Version
0.1.9
Package Id
express-naked-redirect@0.1.9
Unpacked Size
8.24 kB
Size
2.89 kB
File Count
4
NPM Version
6.4.1
Node Version
8.16.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
5
expressNakedRedirect is a middleware for Express that redirects naked(root domain) request to www or its reverse.
1$ npm install express-naked-redirect --save
It allows you to redirect http://domain.tld to http://www.domain.tld
1app.use(require('express-naked-redirect')())
It allows you to redirect http://www.domain.tld to http://domain.tld
1app.use(require('express-naked-redirect')(true))
or
1app.use(require('express-naked-redirect')({ 2 reverse: true 3}))
It allows you to redirect http://domain.tld to http://sub.domain.tld
1app.use(require('express-naked-redirect')('sub'))
or
1app.use(require('express-naked-redirect')({ 2 subDomain: 'sub' 3}))
It allows you to redirect http://sub.domain.tld to http://domain.tld
1app.use(require('express-naked-redirect')(true, 'sub'))
or
1app.use(require('express-naked-redirect')({ 2 reverse: true, 3 subDomain: 'sub' 4}))
It allows you to redirect http://domain.tld to https://www.domain.tld
1app.use(require('express-naked-redirect')({ 2 subDomain: 'www', 3 https: true 4}))
or
1app.use(require('express-naked-redirect')({ 2 subDomain: 'www', 3 protocol: 'https' 4}))
If you do not want to redirect specific paths, add except
option. It requires url-pattern
library separately.
1app.use(require('express-naked-redirect')({ 2 reverse: true, 3 subDomain: 'sub', 4 except: [ 5 '/foo/bar', 6 '/foo/bar/:id' 7 ] 8}))
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
23 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More