networkConnections() fix pid issue (macOS)

This commit is contained in:
Sebastian Hildebrandt
2025-12-08 20:07:25 +01:00
parent c6e8ae960a
commit 647d778c5f
52 changed files with 1547 additions and 1511 deletions
+7 -8
View File
@@ -168,8 +168,8 @@ valueObject = {
system: 'model, manufacturer'
}
si.get(valueObject).then(data => console.log(data));</code></pre class="example">
<pre class="example">
si.get(valueObject).then(data => console.log(data));</code></pre>
<pre class="example">
{
cpu: {
manufacturer: 'Intel®',
@@ -200,8 +200,8 @@ si.get(valueObject).then(data => console.log(data));</code></pre class="example"
}
}
</pre>
</td>
</tr>
</tbody>
</table>
<p>The key names of the <span class="code">valueObject</span> must be exactly the same as the representing function within systeminformation.</p>
<h3>Providing parameters to the get() function</h3>
@@ -242,8 +242,8 @@ si.get(valueObject).then(data => console.log(data));</code></pre class="example"
valueObject = {
processLoad: 'pids, cpu (postgres)'
}
si.get(valueObject).then(data => console.log(data));</code></pre class="example">
<pre class="example">
si.get(valueObject).then(data => console.log(data));</code></pre>
<pre class="example">
{
processLoad: {
pids: [
@@ -255,8 +255,8 @@ si.get(valueObject).then(data => console.log(data));</code></pre class="example"
}
}
</pre>
</td>
</tr>
</tbody>
</table>
<h2>Get All At Once</h2>
<p>The following three functions <span class="code">si.getStaticData()</span>, <span class="code">si.getDynamicData()</span> and <span class="code">si.getAllData()</span> will return most of the available data in a single result object:</p>
@@ -315,8 +315,7 @@ si.get(valueObject).then(data => console.log(data));</code></pre class="example"
</div>
</div>
</div>
</div>
</section>
</section>
</div>
<footer class="container-fluid footer">
<div class="container">