versions() fix getting all versions
This commit is contained in:
@@ -75,7 +75,7 @@ si.cpu()
|
||||
.then(data => console.log(data))
|
||||
.catch(error => console.error(error));
|
||||
</code></pre>
|
||||
<h2>Callback, Promises, Awync Await</h2>
|
||||
<h2>Callback, Promises, Async Await</h2>
|
||||
<p>Remember: all functions (except <span class="code">version</span> and <span class="code">time</span>) are implemented as asynchronous functions! There are now three ways to consume them:</p>
|
||||
<p><strong>Callback Style</strong></p>
|
||||
<pre><code class="js">const si = require('systeminformation');
|
||||
|
||||
Reference in New Issue
Block a user