code cleanup, updated docs
This commit is contained in:
parent
52ebe5d9a5
commit
d50c9fe850
@ -72,6 +72,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.2.2 | 2020-02-11 | code cleanup, updated docs |
|
||||
| 5.2.1 | 2020-02-10 | `system()` fixed issue virtual detect (linux) |
|
||||
| 5.2.0 | 2020-02-10 | `wifiInterfces()` and `wifiConnections()` added |
|
||||
| 5.1.2 | 2020-02-08 | fixed node 4 compatibility issue |
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
[![NPM Downloads][downloads-image]][downloads-url]
|
||||
[![Git Issues][issues-img]][issues-url]
|
||||
[![Closed Issues][closed-issues-img]][closed-issues-url]
|
||||
[![deps status][daviddm-img]][daviddm-url]
|
||||
<img src="docs/assets/no-dependencies.svg" alt="no dependencies">
|
||||
[![Code Quality: Javascript][lgtm-badge]][lgtm-badge-url]
|
||||
[![Total alerts][lgtm-alerts]][lgtm-alerts-url]
|
||||
[![Caretaker][caretaker-image]][caretaker-url]
|
||||
@ -38,10 +38,11 @@ The new Version 5 is here - I spend several weeks finalizing this new version. A
|
||||
|
||||
This next major version release 5.0 comes with new functionality and several improvements and changes (some of them are breaking changes!):
|
||||
|
||||
- added bluetooth: get detailed bluetooth device information
|
||||
- added usb: get detailed usb controller and device information
|
||||
- added printer: get information from detected printers
|
||||
- added audio: get detailed audio device information
|
||||
- added bluetooth: get detailed bluetooth device information
|
||||
- added printer: get information from detected printers
|
||||
- added usb: get detailed usb controller and device information
|
||||
- added wifi interfaces ans connections: extended wifi information
|
||||
- better uuid function to get unique hardware and OS UUIDs
|
||||
- better/extended cpu info detection
|
||||
- better/extended system info detection
|
||||
|
||||
1
docs/assets/no-dependencies.svg
Normal file
1
docs/assets/no-dependencies.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="122" height="20" role="img" aria-label="dependencies: none"><title>dependencies: none</title><g shape-rendering="crispEdges"><rect width="85" height="20" fill="#555"/><rect x="85" width="37" height="20" fill="#4c1"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="435" y="140" transform="scale(.1)" fill="#fff" textLength="750">dependencies</text><text x="1025" y="140" transform="scale(.1)" fill="#fff" textLength="270">none</text></g></svg>
|
||||
|
After Width: | Height: | Size: 637 B |
@ -57,7 +57,12 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.2.0</th>
|
||||
<th scope="row">5.2.2</th>
|
||||
<td>2020-02-11</td>
|
||||
<td>code cleanup, updated docs</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.2.1</th>
|
||||
<td>2020-02-10</td>
|
||||
<td><span class="code">system()</span> fixed issue virtual detect (linux)</td>
|
||||
</tr>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.2.1</span></div>
|
||||
<div class="version">New Version: <span id="version">5.2.2</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">
|
||||
@ -187,7 +187,7 @@
|
||||
<div class="subtitle">Node.js system information package. Lightweight collection of 50+ functions to retrieve detailed hardware, system and OS information. For Linux, macOS, partial Windows, FreeBSD, OpenBSD, NetBSD and SunOS support. Dependency free.</div>
|
||||
<div class="npmicons">
|
||||
<a href="https://npmjs.org/package/systeminformation" rel="nofollow"><img src="https://camo.githubusercontent.com/df25636cbefadf18ca1532e3bdcd0d2794235e19/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f73797374656d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265" alt="NPM Version" data-canonical-src="https://img.shields.io/npm/v/systeminformation.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
<a href="https://david-dm.org/sebhildebrandt/systeminformation" rel="nofollow"><img src="https://camo.githubusercontent.com/69739c043c2be3a38545f105b89381a2a6310f59/68747470733a2f2f696d672e736869656c64732e696f2f64617669642f73656268696c64656272616e64742f73797374656d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265" alt="deps status" data-canonical-src="https://img.shields.io/david/sebhildebrandt/systeminformation.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
<a href="https://systeminformation.io" rel="nofollow"><img src="assets/no-dependencies.svg" alt="no dependencies"></a>
|
||||
<a href="https://lgtm.com/projects/g/sebhildebrandt/systeminformation/context:javascript" rel="nofollow"><img src="https://camo.githubusercontent.com/08409d6fb3794545416e1a40ca75172b54d34692/68747470733a2f2f696d672e736869656c64732e696f2f6c67746d2f67726164652f6a6176617363726970742f672f73656268696c64656272616e64742f73797374656d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265" alt="Code Quality: Javascript" data-canonical-src="https://img.shields.io/lgtm/grade/javascript/g/sebhildebrandt/systeminformation.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
<a href="https://lgtm.com/projects/g/sebhildebrandt/systeminformation/alerts" rel="nofollow"><img src="https://camo.githubusercontent.com/66428127fdde80fc8247a0c1df4c651f3a6b1c0a/68747470733a2f2f696d672e736869656c64732e696f2f6c67746d2f616c657274732f672f73656268696c64656272616e64742f73797374656d696e666f726d6174696f6e2e7376673f7374796c653d666c61742d737175617265" alt="Total alerts" data-canonical-src="https://img.shields.io/lgtm/alerts/g/sebhildebrandt/systeminformation.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
<a href="https://github.com/sebhildebrandt/systeminformation/blob/master/LICENSE"><img src="https://camo.githubusercontent.com/4b5966a2a252ee0f241a1e03b13417178eb4964f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265" alt="MIT license" data-canonical-src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" style="max-width:100%;"></a>
|
||||
|
||||
10
lib/wifi.js
10
lib/wifi.js
@ -494,19 +494,19 @@ function wifiConnections(callback) {
|
||||
const ssid = nmiDetails.ssid || wpaDetails.ssid;
|
||||
const network = networkList.filter(nw => nw.ssid === ssid);
|
||||
const nmiConnection = nmiConnectionLinux(ssid);
|
||||
const channel = network && network.length && network[0].channel ? network[0].channel : (wpaDetails && wpaDetails.channel ? wpaDetails.channel : null);
|
||||
const bssid = network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails && wpaDetails.bssid ? wpaDetails.bssid : null);
|
||||
const channel = network && network.length && network[0].channel ? network[0].channel : (wpaDetails.channel ? wpaDetails.channel : null);
|
||||
const bssid = network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails.bssid ? wpaDetails.bssid : null);
|
||||
if (ssid && bssid) {
|
||||
result.push({
|
||||
id: ifaceDetail.id,
|
||||
iface: ifaceDetail.iface,
|
||||
model: nmiDetails.product,
|
||||
ssid,
|
||||
bssid: network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails && wpaDetails.bssid ? wpaDetails.bssid : null),
|
||||
bssid: network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails.bssid ? wpaDetails.bssid : null),
|
||||
channel,
|
||||
frequency: channel ? wifiFrequencyFromChannel(channel) : null,
|
||||
type: nmiConnection && nmiConnection.type ? nmiConnection.type : '802.11',
|
||||
security: nmiConnection && nmiConnection.security ? nmiConnection.security : (wpaDetails && wpaDetails.security ? wpaDetails.security : null),
|
||||
type: nmiConnection.type ? nmiConnection.type : '802.11',
|
||||
security: nmiConnection.security ? nmiConnection.security : (wpaDetails.security ? wpaDetails.security : null),
|
||||
signalLevel: network && network.length && network[0].signalLevel ? network[0].signalLevel : null,
|
||||
txRate: null
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user