Gathering detailed insights and metrics for detect-port-alt
Gathering detailed insights and metrics for detect-port-alt
Gathering detailed insights and metrics for detect-port-alt
Gathering detailed insights and metrics for detect-port-alt
Node.js module to detect available ports of the system.
npm install detect-port-alt
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
380 Stars
83 Commits
28 Forks
15 Watching
3 Branches
27 Contributors
Updated on 15 Oct 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-2.6%
801,635
Compared to previous day
Last week
3.7%
4,242,810
Compared to previous week
Last month
7%
17,741,720
Compared to previous month
Last year
-13.2%
215,520,912
Compared to previous year
6
Node.js implementation of port detector
1$ npm i detect-port --save
1const detect = require('detect-port'); 2/** 3 * use as a promise 4 */ 5 6detect(port) 7 .then(_port => { 8 if (port == _port) { 9 console.log(`port: ${port} was not occupied`); 10 } else { 11 console.log(`port: ${port} was occupied, try port: ${_port}`); 12 } 13 }) 14 .catch(err => { 15 console.log(err); 16 }); 17
1$ npm i detect-port -g
1# get an available port randomly 2$ detect 3 4# detect pointed port 5$ detect 80 6 7# output verbose log 8$ detect --verbose 9 10# more help 11$ detect --help
Most likely network error, check that your /etc/hosts
and make sure the content below:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
xudafeng | fengmk2 | ziczhu | gaearon | chnliquan | popomore |
---|---|---|---|---|---|
snapre | yavuzakyuz | antife-yinyue |
This project follows the git-contributor spec, auto updated at Wed Sep 21 2022 23:10:27 GMT+0800
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 8/30 approved changesets -- score normalized to 2
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
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2024-11-18
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