Gathering detailed insights and metrics for getos
Gathering detailed insights and metrics for getos
Gathering detailed insights and metrics for getos
Gathering detailed insights and metrics for getos
@types/getos
TypeScript definitions for getos
getos-cli
Detect and Print OS name cross-platform
picluster-getos
Get the OS/Distribution name of the environment you are working on
getoslocalescrossplatform
A cross platform alternative to get locales used on the platform. Works on Node, Electron, NW.js and Browsers
A Node.js module that returns the OS/Distribution name of the environment you are working on
npm install getos
Typescript
Module System
Node Version
NPM Version
99.1
Supply Chain
93.3
Quality
79.8
Maintenance
100
Vulnerability
100
License
JavaScript (79.04%)
Dockerfile (20.96%)
Total Downloads
1,037,304,769
Last Day
288,246
Last Week
6,140,954
Last Month
24,613,215
Last Year
272,308,027
MIT License
79 Stars
226 Commits
27 Forks
9 Watchers
17 Branches
21 Contributors
Updated on Dec 01, 2024
Minified
Minified + Gzipped
Latest Version
3.2.1
Package Id
getos@3.2.1
Size
15.19 kB
NPM Version
6.14.4
Node Version
10.20.1
Published on
May 19, 2020
Cumulative downloads
Total Downloads
Last Day
13.4%
288,246
Compared to previous day
Last Week
2.2%
6,140,954
Compared to previous week
Last Month
-0.8%
24,613,215
Compared to previous month
Last Year
7.4%
272,308,027
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", 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
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 6/24 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-05-19
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