docs updated, tests added node 18

This commit is contained in:
Sebastian Hildebrandt 2022-05-30 05:24:39 +02:00
parent af8e2e9e4c
commit e1765d1c38
6 changed files with 28 additions and 5 deletions

View File

@ -11,16 +11,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x]
node-version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x]
include:
- os: macos-latest
node-version: 14.x
- os: macos-latest
node-version: 16.x
- os: macos-latest
node-version: 18.x
- os: windows-latest
node-version: 14.x
- os: windows-latest
node-version: 16.x
- os: windows-latest
node-version: 18.x
runs-on: ${{ matrix.os }}

View File

@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 5.11.16 | 2022-05-30 | `docs` updated, `tests` added node 18 |
| 5.11.15 | 2022-05-11 | `audio()` fix typescript typings |
| 5.11.14 | 2022-04-22 | `netforkInterfaces()` node 18 compatibility |
| 5.11.13 | 2022-04-21 | `networkStats()` improved scanning (mac OS) |

View File

@ -70,7 +70,13 @@ Lightweight collection of 50+ functions to retrieve detailed hardware, system an
### Installation
```bash
$ npm install systeminformation --save
npm install systeminformation --save
```
or simpler
```bash
npm install systeminformation
```
#### Still need Version 4?
@ -78,9 +84,14 @@ $ npm install systeminformation --save
If you need version 4 (for compatibility reasons), you can install version 4 (latest release) like this
```bash
$ npm install systeminformation@4 —save
npm install systeminformation@4 —save
```
or simpler
```bash
npm install systeminformation@4
```
### Usage

View File

@ -69,7 +69,9 @@
<p>This library is supposed to be used as a <a href="https://nodejs.org/en/" rel="nofollow">node.js</a> backend/server-side library and will definitely not work within a browser.</p>
<h2>Installation</h2>
<pre>$ npm install systeminformation --save</pre>
<pre>$ npm install systeminformation --save</pre>
<p>or simpler:</p>
<pre>$ npm install systeminformation</pre>
<h2>Usage</h2>
<p>All functions (except <span class="code">version</span> and <span class="code">time</span>) are implemented as asynchronous functions. Here a small example how to use them:</p>
<pre><code class="js">const si = require('systeminformation');

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.11.16</th>
<td>2022-05-11</td>
<td><span class="code">docs</span> updated <span class="code">tests</span> added node 18</td>
</tr>
<tr>
<th scope="row">5.11.15</th>
<td>2022-05-11</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.11.15</span></div>
<div class="version">New Version: <span id="version">5.11.16</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">