versions() added param to specify which program/lib versions to detect

This commit is contained in:
Sebastian Hildebrandt
2020-03-08 19:22:23 +01:00
parent 8f5babb29c
commit add6dd4d2a
6 changed files with 428 additions and 309 deletions
+5
View File
@@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.23.0</th>
<td>2020-03-08</td>
<td><span class="code">versions()</span> added param to specify which program/lib versions to detect</td>
</tr>
<tr>
<th scope="row">4.22.7</th>
<td>2020-03-08</td>
+1 -1
View File
@@ -168,7 +168,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.22.7</span></div>
<div class="version">Current Version: <span id="version">4.23.0</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
+11 -2
View File
@@ -259,14 +259,14 @@ si.osInfo().then(data => console.log(data));</code></pre class="example">
<td>standard shell</td>
</tr>
<tr>
<td>si.versions(cb)</td>
<td>si.versions(apps, cb)</td>
<td>{...}</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>version information of<br>node and dev software packages</td>
<td>version information of<br>node and dev software packages<br>optional apps param (string, <br>comma or space seperated)<br>only those apps are detected</td>
</tr>
<tr>
<td></td>
@@ -586,6 +586,15 @@ si.versions().then(data => console.log(data));</code></pre class="example">
java: '',
gcc: '4.2.1',
virtualbox: ''
}</pre>
<h5>Example 2</h5>
<pre><code class="js">const si = require('systeminformation');
si.versions('npm, php, postgresql').then(data => console.log(data));</code></pre class="example">
<pre class="example">
{
npm: '6.13.6',
php: '7.3.11',
postgresql: '12.1'
}</pre>
</tr>
<tr>