Gathering detailed insights and metrics for picluster-getos
Gathering detailed insights and metrics for picluster-getos
npm install picluster-getos
Typescript
Module System
Node Version
NPM Version
63.5
Supply Chain
92
Quality
75
Maintenance
50
Vulnerability
99.6
License
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
2
Compared to previous week
Last month
250%
7
Compared to previous month
Last year
-32.4%
46
Compared to previous year
Get the OS/Distribution name of the environment you are working on
os.platform()
returns linux
. If you want the distrubtion name, you're out of luck.
This. Simply call:
1var getos = require('getos') 2 3getos(function(e,os) { 4 if(e) return console.log(e) 5 console.log("Your OS is:" +JSON.stringify(os)) 6})
The os
object conforms to:
1{ 2 os: [OS NAME], 3 dist:[DIST NAME], 4 codename:[CODENAME], 5 release:[VERSION] 6}
For example:
1{ 2 os: "linux", 3 dist: "Ubuntu Linux", 4 codename: "precise", 5 release: "12.04" 6}
Check os.json
in this repo. Any distribution that shares a common resource file with another distrubtion is currently untested. These are the arrays of distrubitons with more than 1 member. If you are using one of these distrubtions, please submit an issue letting me know if it works. If it fails, please post the content of the file.
If you have a distrubtion not in os.json
, please identify your resource file and submit it's name and content along with your distrbution/version in an issue.
Thanks for helping make this tool great.
Unit tests stub out the behaviour of the OS files and libraries we depend on to ensure the behaviour of the application is sound. You can run these simply by running npm test
getos has been made possible by these fantastic contributors:
Benjamin E. Coe | GitHub/bcoe | Twitter/@benjamincoe |
---|---|---|
Eugene Sharygin | GitHub/eush77 | Twitter/@eush77 |
David Routhieau | GitHub/root-io | unknown |
Lawrence | GitHub/mindmelting | Twitter/@mindmelting |
Roman Jurkov | GitHub/winfinit | Twitter/@winfinit |
Rod Vagg | GitHub/rvagg | Twitter/@rvagg |
Zeke Sikelianos | GitHub/zeke | Twitter/@zeke |
Alexander | GitHub/alex4Zero | Twitter/@alex4Zero |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
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
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
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