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 | | 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.4 | 2022-11-21 | `osInfo()` improved uefi parsing (FreeBSD) |
| 5.14.3 | 2022-11-20 | `graphics()` multi monitor refresh rate (windows) | | 5.14.3 | 2022-11-20 | `graphics()` multi monitor refresh rate (windows) |
| 5.14.2 | 2022-11-20 | `osInfo()` improved parsing (FreeBSD) | | 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].removable | X | | X | X | | serial |
| | [0].protocol | X | | X | | | protocol (SATA, PCI-Express, ...) | | | [0].protocol | X | | X | | | protocol (SATA, PCI-Express, ...) |
| | [0].group | X | | | | | Raid group member (e.g. md1) | | | [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 | | si.disksIO(cb) | {...} | X | | X | | | current transfer stats |
| | rIO | X | | X | | | read IOs on all mounted drives | | | rIO | X | | X | | | read IOs on all mounted drives |
| | wIO | X | | X | | | write 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></td>
<td>Raid group member (e.g. md1)</td> <td>Raid group member (e.g. md1)</td>
</tr> </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"> <tr class="example">
<td></td> <td></td>
<td colspan="7"> <td colspan="7">
@ -457,7 +467,8 @@ si.blockDevices().then(data => console.log(data));</code></pre class="example">
serial: '... serial ...', serial: '... serial ...',
removable: false, removable: false,
protocol: 'nvme', protocol: 'nvme',
group: undefined group: '',
device: 'nvme0n1'
}, },
{ {
... ...
@ -989,4 +1000,4 @@ setInterval(function() {
</script> </script>
</body> </body>
</html> </html>

View File

@ -57,6 +57,11 @@
</tr> </tr>
</thead> </thead>
<tbody> <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> <tr>
<th scope="row">5.14.4</th> <th scope="row">5.14.4</th>
<td>2022-11-21</td> <td>2022-11-21</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo"> <img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div> <div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</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> <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>
<div class="down"> <div class="down">
@ -403,4 +403,4 @@
</script> </script>
</body> </body>
</html> </html>