blockDevices() added device (win, linux, mac OS)

This commit is contained in:
Sebastian Hildebrandt 2022-11-29 08:38:05 +01:00
parent 9766c028b9
commit d4b9dc25a4
5 changed files with 22 additions and 4 deletions

View File

@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.15.0 | 2022-11-29 | `blockDevices()` added device (win, linux, mac OS) |
| 5.14.4 | 2022-11-21 | `osInfo()` improved uefi parsing (FreeBSD) |
| 5.14.3 | 2022-11-20 | `graphics()` multi monitor refresh rate (windows) |
| 5.14.2 | 2022-11-20 | `osInfo()` improved parsing (FreeBSD) |

View File

@ -466,6 +466,7 @@ Full function reference with examples can be found at [https://systeminformation
| | [0].removable | X | | X | X | | serial |
| | [0].protocol | X | | X | | | protocol (SATA, PCI-Express, ...) |
| | [0].group | X | | | | | Raid group member (e.g. md1) |
| | [0].device | X | | X | X | | physical device mapped to (e.g. /dev/sda) |
| si.disksIO(cb) | {...} | X | | X | | | current transfer stats |
| | rIO | X | | X | | | read IOs on all mounted drives |
| | wIO | X | | X | | | write IOs on all mounted drives |

View File

@ -436,6 +436,16 @@ si.diskLayout().then(data => console.log(data));</code></pre class="example">
<td></td>
<td>Raid group member (e.g. md1)</td>
</tr>
<tr>
<td></td>
<td>[1].device</td>
<td>X</td>
<td></td>
<td>X</td>
<td>X</td>
<td></td>
<td>Physical device mapped to (e.g. /dev/sda)</td>
</tr>
<tr class="example">
<td></td>
<td colspan="7">
@ -457,7 +467,8 @@ si.blockDevices().then(data => console.log(data));</code></pre class="example">
serial: '... serial ...',
removable: false,
protocol: 'nvme',
group: undefined
group: '',
device: 'nvme0n1'
},
{
...

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.15.0</th>
<td>2022-11-29</td>
<td><span class="code">blockDevices()</span> added device (win, linux, mac OS)</td>
</tr>
<tr>
<th scope="row">5.14.4</th>
<td>2022-11-21</td>

View File

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