updated docs, renamed wifiNetworks
This commit is contained in:
parent
b6bb1ff73d
commit
d3d8998eed
@ -30,7 +30,8 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
| 4.11.0 | 2019-06-14 | `wifi()` added available wifi networks |
|
| 4.11.1 | 2019-06-15 | updated docs |
|
||||||
|
| 4.11.0 | 2019-06-14 | `wifiNetworks()` added available wifi networks |
|
||||||
| 4.10.0 | 2019-06-14 | `graphics()` windows multiple display support |
|
| 4.10.0 | 2019-06-14 | `graphics()` windows multiple display support |
|
||||||
| 4.9.2 | 2019-06-12 | type definitions bug fix |
|
| 4.9.2 | 2019-06-12 | type definitions bug fix |
|
||||||
| 4.9.1 | 2019-06-11 | `networkStats()` bug fix windows |
|
| 4.9.1 | 2019-06-11 | `networkStats()` bug fix windows |
|
||||||
|
|||||||
@ -82,7 +82,7 @@ si.cpu()
|
|||||||
|
|
||||||
(last 7 major and minor version releases)
|
(last 7 major and minor version releases)
|
||||||
|
|
||||||
- Version 4.11.0: `wifi()` added available wifi networks
|
- Version 4.11.0: `wifiNetworks()` added available wifi networks
|
||||||
- Version 4.10.0: `graphics()` added windows multiple display support, added display size, connection, ...
|
- Version 4.10.0: `graphics()` added windows multiple display support, added display size, connection, ...
|
||||||
- Version 4.9.0: `graphics()` added vendor, refresh rate, current resolution
|
- Version 4.9.0: `graphics()` added vendor, refresh rate, current resolution
|
||||||
- Version 4.8.0: added `vboxInfo()` detailed virtual box info
|
- Version 4.8.0: added `vboxInfo()` detailed virtual box info
|
||||||
@ -459,7 +459,7 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (
|
|||||||
#### 11. Wifi networks
|
#### 11. Wifi networks
|
||||||
| Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
|
| Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
|
||||||
| --------------- | ------------- | ----- | ------- | --- | --- | --- | -------- |
|
| --------------- | ------------- | ----- | ------- | --- | --- | --- | -------- |
|
||||||
| si.wifi(cb) | [{...}] | X | | X | X | | array of available wifi networks |
|
| si.wifiNetworks(cb) | [{...}] | X | | X | X | | array of available wifi networks |
|
||||||
| | [0].ssid | X | | X | X | | Wifi network SSID |
|
| | [0].ssid | X | | X | X | | Wifi network SSID |
|
||||||
| | [0].bssid | X | | X | X | | BSSID (mac) |
|
| | [0].bssid | X | | X | X | | BSSID (mac) |
|
||||||
| | [0].mode | X | | | | | mode |
|
| | [0].mode | X | | | | | mode |
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.11.1</th>
|
||||||
|
<td>2019-06-15</td>
|
||||||
|
<td>updated docs</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.11.0</th>
|
<th scope="row">4.11.0</th>
|
||||||
<td>2019-06-14</td>
|
<td>2019-06-14</td>
|
||||||
|
|||||||
@ -66,7 +66,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>si.wifi(cb)</td>
|
<td>si.wifiNetworks(cb)</td>
|
||||||
<td>[{...}]</td>
|
<td>[{...}]</td>
|
||||||
<td>X</td>
|
<td>X</td>
|
||||||
<td>X</td>
|
<td>X</td>
|
||||||
|
|||||||
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -639,7 +639,7 @@ export function networkConnections(cb?: (data: Systeminformation.NetworkConnecti
|
|||||||
export function inetChecksite(url: string, cb?: (data: Systeminformation.InetChecksiteData) => any): Promise<Systeminformation.InetChecksiteData>;
|
export function inetChecksite(url: string, cb?: (data: Systeminformation.InetChecksiteData) => any): Promise<Systeminformation.InetChecksiteData>;
|
||||||
export function inetLatency(host?: string, cb?: (data: number) => any): Promise<number>;
|
export function inetLatency(host?: string, cb?: (data: number) => any): Promise<number>;
|
||||||
|
|
||||||
export function wifi(cb?: (data: Systeminformation.WifiNetworkData[]) => any): Promise<Systeminformation.WifiNetworkData[]>;
|
export function wifiNetworks(cb?: (data: Systeminformation.WifiNetworkData[]) => any): Promise<Systeminformation.WifiNetworkData[]>;
|
||||||
|
|
||||||
export function users(cb?: (data: Systeminformation.UserData[]) => any): Promise<Systeminformation.UserData[]>;
|
export function users(cb?: (data: Systeminformation.UserData[]) => any): Promise<Systeminformation.UserData[]>;
|
||||||
|
|
||||||
|
|||||||
@ -110,7 +110,7 @@ function wifiFrequencyFromChannel(channel) {
|
|||||||
return frequencies.hasOwnProperty(channel) ? frequencies[channel] : -1;
|
return frequencies.hasOwnProperty(channel) ? frequencies[channel] : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function wifi(callback) {
|
function wifiNetworks(callback) {
|
||||||
|
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
process.nextTick(() => {
|
process.nextTick(() => {
|
||||||
@ -238,4 +238,4 @@ function wifi(callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.wifi = wifi;
|
exports.wifiNetworks = wifiNetworks;
|
||||||
|
|||||||
@ -62,7 +62,12 @@
|
|||||||
"gpu",
|
"gpu",
|
||||||
"display",
|
"display",
|
||||||
"smart",
|
"smart",
|
||||||
"disk layout"
|
"disk layout",
|
||||||
|
"wifi",
|
||||||
|
"wifinetworks",
|
||||||
|
"virtual box",
|
||||||
|
"virtualbox",
|
||||||
|
"vm"
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user