diff --git a/CHANGELOG.md b/CHANGELOG.md index bb84c3a..5cb8b9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.25.0 | 2025-01-05 | `versions()` added homebrew | +| 5.24.9 | 2025-01-04 | `checkWebsite()` reestablished certificate validation | | 5.24.9 | 2025-01-04 | `checkWebsite()` reestablished certificate validation | | 5.24.8 | 2025-01-03 | `powerShell()` detect default installation path (windows) | | 5.24.7 | 2025-01-03 | `system()` chassis type parsing improved (macOS) | diff --git a/README.md b/README.md index ddfda61..1d494c0 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,7 @@ si.cpu() (last 7 major and minor version releases) +- Version 5.24.0: `versions()` added homebrew - Version 5.24.0: `versions()` added bun and deno - Version 5.23.0: `usb()` added serial number (linux) - Version 5.22.0: `wifiConnections()` added signal quality diff --git a/docs/history.html b/docs/history.html index 14a9f62..8999423 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@
+
{
- kernel: '19.3.0',
- openssl: '1.1.1d',
- systemOpenssl: '2.8.3',
- systemOpensslLib: 'LibreSSL',
- node: '13.8.0',
+ kernel: '23.6.0',
+ apache: '2.4.62',
+ bash: '3.2.57',
bun: '1.1.21',
deno: '2.1.4',
- v8: '7.9.317.25-node.28',
- npm: '6.13.6',
- yarn: '',
- pm2: '',
- gulp: '',
- grunt: '',
- git: '2.21.1',
- tsc: '3.7.5',
- mysql: 'gpl)',
- redis: '',
- mongodb: '',
- apache: '2.4.41 (Unix)',
- nginx: '',
- php: '7.3.11',
- docker: '19.03.5',
- postfix: '3.2.2',
- postgresql: '12.1',
- perl: '5.18.4',
- python: '2.7.16',
- python3: '3.7.3',
- pip: '',
- pip3: '19.0.3',
- java: '',
- gcc: '4.2.1',
- virtualbox: '',
- bash: '3.2.57',
- zsh: '5.8',
+ docker: '26.1.1',
+ dotnet: '',
fish: '',
+ gcc: '15.0.0',
+ git: '2.39.3',
+ grunt: '',
+ gulp: '',
+ homebrew: '4.4.14',
+ java: '17.0.2',
+ mongodb: '',
+ mysql: '9.0.1',
+ nginx: '',
+ node: '22.12.0',
+ npm: '10.9.0',
+ openssl: '3.0.15+quic',
+ perl: '5.34.1',
+ php: '8.3.6',
+ pip3: '24.2',
+ pip: '20.3.4',
+ pm2: '5.1.2',
+ postfix: '3.2.2',
+ postgresql: '16.4',
powershell: '',
- dotnet: ''
+ python3: '3.12.5',
+ python: '',
+ redis: '',
+ systemOpenssl: '3.3.1',
+ systemOpensslLib: 'OpenSSL',
+ tsc: '5.2.2',
+ v8: '12.4.254.21-node.21',
+ virtualbox: '',
+ yarn: '1.22.17',
+ zsh: '5.9''
}
const si = require('systeminformation');
diff --git a/lib/osinfo.js b/lib/osinfo.js
index afafdb9..e07488f 100644
--- a/lib/osinfo.js
+++ b/lib/osinfo.js
@@ -463,6 +463,7 @@ function versions(apps, callback) {
git: '',
grunt: '',
gulp: '',
+ homebrew: '',
java: '',
mongodb: '',
mysql: '',
@@ -494,7 +495,7 @@ function versions(apps, callback) {
if (apps === '*') {
return {
versions: versionObject,
- counter: 32
+ counter: 34
};
}
if (!Array.isArray(apps)) {
@@ -609,6 +610,16 @@ function versions(apps, callback) {
functionProcessed();
});
}
+ if ({}.hasOwnProperty.call(appsObj.versions, 'homebrew')) {
+ cmd = 'brew';
+ exec(`${cmd} --version`, function (error, stdout) {
+ if (!error) {
+ const brew = stdout.toString().split('\n')[0] || '';
+ appsObj.versions.homebrew = (brew.toLowerCase().split(' ')[1] || '').trim();
+ }
+ functionProcessed();
+ });
+ }
if ({}.hasOwnProperty.call(appsObj.versions, 'tsc')) {
cmd = 'tsc';
if (_windows) {