Installations
npm install resolve-mongodb-srv
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Node Version
16.20.2
NPM Version
8.19.4
Score
98.7
Supply Chain
72.4
Quality
84.5
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
TypeScript (99.75%)
JavaScript (0.25%)
Developer
mongodb-js
Download Statistics
Total Downloads
4,073,107
Last Day
1,643
Last Week
30,292
Last Month
260,106
Last Year
2,017,347
GitHub Statistics
2 Stars
28 Commits
1 Forks
14 Watching
3 Branches
12 Contributors
Package Meta Information
Latest Version
1.1.5
Package Id
resolve-mongodb-srv@1.1.5
Unpacked Size
24.43 kB
Size
8.25 kB
File Count
11
NPM Version
8.19.4
Node Version
16.20.2
Publised On
10 May 2024
Total Downloads
Cumulative downloads
Total Downloads
4,073,107
Last day
-75.5%
1,643
Compared to previous day
Last week
-70.4%
30,292
Compared to previous week
Last month
25.7%
260,106
Compared to previous month
Last year
55.4%
2,017,347
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
19
resolve-mongodb-srv
Resolve mongodb+srv://
URLs to mongodb://
URLs as specified in the
Initial DNS Seedlist Discovery Specification.
1import resolveMongodbSrv from 'resolve-mongodb-srv';
2
3await resolveMongodbSrv('mongodb+srv://user:password@somecluster.mongodb.net/db');
4// Returns: mongodb://user:password@host1,host2,host3/db
The resolveMongodbSrv
function takes an optional second argument, where the
used dns
implementation can be passed in:
1import dns from 'dns'; 2import resolveMongodbSrv from 'resolve-mongodb-srv'; 3 4await resolveMongodbSrv('hostname', { dns });
LICENSE
Apache-2.0
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
SAST tool detected but not run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Warn: 9 commits out of 16 are checked with a SAST tool
Reason
Found 3/17 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/mongodb-js/resolve-mongodb-srv/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/mongodb-js/resolve-mongodb-srv/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/mongodb-js/resolve-mongodb-srv/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/mongodb-js/resolve-mongodb-srv/codeql.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/mongodb-js/resolve-mongodb-srv/nodejs.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mongodb-js/resolve-mongodb-srv/nodejs.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/mongodb-js/resolve-mongodb-srv/nodejs.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:29
- Info: 0 out of 7 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:29
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:30
- Warn: no topLevel permission defined: .github/workflows/codeql.yml:1
- Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Score
4
/10
Last Scanned on 2024-12-16
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