Gathering detailed insights and metrics for mongodb-connection-string-url
Gathering detailed insights and metrics for mongodb-connection-string-url
Gathering detailed insights and metrics for mongodb-connection-string-url
Gathering detailed insights and metrics for mongodb-connection-string-url
MongoDB connection strings, based on the WhatWG URL API
npm install mongodb-connection-string-url
Typescript
Module System
Node Version
NPM Version
99.1
Supply Chain
74.6
Quality
84.1
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
478,947,839
Last Day
313,169
Last Week
4,821,967
Last Month
20,530,480
Last Year
223,131,800
Apache-2.0 License
9 Stars
77 Commits
12 Forks
9 Watchers
8 Branches
15 Contributors
Updated on Apr 28, 2025
Minified
Minified + Gzipped
Latest Version
3.0.2
Package Id
mongodb-connection-string-url@3.0.2
Unpacked Size
37.54 kB
Size
10.72 kB
File Count
10
NPM Version
11.0.0
Node Version
22.13.0
Published on
Jan 14, 2025
Cumulative downloads
Total Downloads
Last Day
3.5%
313,169
Compared to previous day
Last Week
-5.3%
4,821,967
Compared to previous week
Last Month
0.7%
20,530,480
Compared to previous month
Last Year
60.6%
223,131,800
Compared to previous year
2
MongoDB connection strings, based on the WhatWG URL API
1import ConnectionString from 'mongodb-connection-string-url'; 2 3const cs = new ConnectionString('mongodb://localhost'); 4cs.searchParams.set('readPreference', 'secondary'); 5console.log(cs.href); // 'mongodb://localhost/?readPreference=secondary'
.host
, .hostname
and .port
properties cannot be set, and reading
them does not return meaningful results (and are typed as never
in TypeScript).hosts
property contains a list of all hosts in the connection string.href
property cannot be set, only read.isSRV
property, set to true
for mongodb+srv://
.clone()
utility method on the prototypeApache-2.0
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
SAST tool is not run on all commits -- score normalized to 8
Details
Reason
Found 12/18 approved changesets -- score normalized to 6
Reason
branch protection is not maximal on development and all release branches
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-23
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