diff --git a/README.md b/README.md
index 7e3bff0..9dc12b7 100644
--- a/README.md
+++ b/README.md
@@ -341,10 +341,10 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (
| si.networkStats(iface,cb) | {...} | X | X | X | X | | current network stats of given interface iface parameter is optional defaults to first external network interface|
| | iface | X | X | X | X | | interface |
| | operstate | X | X | X | X | | up / down |
-| | rx | X | X | X | X | | received bytes overall |
+| | rx_bytes | X | X | X | X | | received bytes overall |
| | rx_dropped | X | X | X | X | | received dropped overall |
| | rx_errors | X | X | X | X | | received errors overall |
-| | tx | X | X | X | X | | transferred bytes overall |
+| | tx_bytes | X | X | X | X | | transferred bytes overall |
| | tx_dropped | X | X | X | X | | transferred dropped overall |
| | tx_errors | X | X | X | X | | transferred errors overall |
| | rx_sec | X | X | X | X | | received bytes / second (* see notes) |
diff --git a/docs/assets/logo.png b/docs/assets/logo.png
new file mode 100644
index 0000000..a2dad7b
Binary files /dev/null and b/docs/assets/logo.png differ
diff --git a/docs/assets/motherboard.jpg b/docs/assets/motherboard.jpg
new file mode 100644
index 0000000..86e8074
Binary files /dev/null and b/docs/assets/motherboard.jpg differ
diff --git a/docs/assets/trianglify.png b/docs/assets/trianglify.png
new file mode 100644
index 0000000..b846ac8
Binary files /dev/null and b/docs/assets/trianglify.png differ
diff --git a/docs/battery.html b/docs/battery.html
new file mode 100644
index 0000000..24478a3
--- /dev/null
+++ b/docs/battery.html
@@ -0,0 +1,257 @@
+
+
+
+
In this section you will learn how to get battery information - if supported by system:
+
For function reference and examples we assume, that we imported systeminformation as follows:
+
const si = require('systeminformation');
+
Battery Data
+
All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)
+
+
+
+
Function
+
Result object
+
Linux
+
BSD
+
Mac
+
Win
+
Sun
+
Comments
+
+
+
+
+
si.battery(cb)
+
{...}
+
X
+
X
+
X
+
X
+
+
battery information
+
+
+
+
hasbattery
+
X
+
X
+
X
+
X
+
+
indicates presence of battery
+
+
+
+
cyclecount
+
X
+
+
X
+
+
+
numbers of recharges
+
+
+
+
ischarging
+
X
+
X
+
X
+
X
+
+
indicates if battery is charging
+
+
+
+
maxcapacity
+
X
+
+
X
+
X
+
+
max capacity of battery
+
+
+
+
currentcapacity
+
X
+
+
X
+
X
+
+
current capacity of battery
+
+
+
+
percent
+
X
+
X
+
X
+
X
+
+
charging level in percent
+
+
+
+
timeremaining
+
X
+
+
X
+
+
+
minutes left (if discharging)
+
+
+
+
acconnected
+
X
+
X
+
X
+
X
+
+
AC connected
+
+
+
+
type
+
X
+
+
X
+
+
+
battery type
+
+
+
+
model
+
X
+
+
X
+
+
+
model
+
+
+
+
manufacturer
+
X
+
+
X
+
+
+
manufacturer
+
+
+
+
serial
+
X
+
+
X
+
+
+
battery serial
+
+
+
+
Known issues
+
macOS - Temperature
+
+
To be able to measure temperature on macOS I created a little additional package. Due to some difficulties in NPM with optionalDependencies
+ I unfortunately was getting unexpected warnings on other platforms. So I decided to drop this optional dependency for macOS - so by default,
+ you will not get correct values.
+
+
But if you need to detect macOS temperature just run the following additional installation command:
+
+
$ npm install osx-temperature-sensor --save
+
systeminformation will then detect this additional library and return the temperature when calling systeminformations standard function cpuTemperature()
+
+
Windows Temperature
+
+
wmic - which is used to determine battery sometimes needs to be run with admin
+ privileges. So if you do not get any values, try to run it again with according privileges. If you still do not get any
+ values, your system might not support this feature.
Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
In this section you will learn how to get disks information, file system information disk I/O stats and file system stats:
+
For function reference and examples we assume, that we imported systeminformation as follows:
+
const si = require('systeminformation');
+
Disk Layout, Block Devices and Disks IO
+
All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)
+
+
+
+
Function
+
Result object
+
Linux
+
BSD
+
Mac
+
Win
+
Sun
+
Comments
+
+
+
+
+
si.diskLayout(cb)
+
[{...}]
+
X
+
+
X
+
X
+
+
physical disk layout (array)
+
+
+
+
[0].type
+
X
+
+
X
+
X
+
+
HD, SSD
+
+
+
+
[0].name
+
X
+
+
X
+
X
+
+
disk name
+
+
+
+
[0].vendor
+
X
+
+
+
X
+
+
vendor/producer
+
+
+
+
[0].firmwareRevision
+
X
+
+
X
+
X
+
+
firmware revision
+
+
+
+
[0].serialNum
+
X
+
+
X
+
X
+
+
serial number
+
+
+
+
[0].interfaceType
+
+
+
+
X
+
+
+
+
+
+
[0].size
+
X
+
+
X
+
X
+
+
size in bytes
+
+
+
+
[0].totalCylinders
+
+
+
+
X
+
+
total cylinders
+
+
+
+
[0].totalHeads
+
+
+
+
X
+
+
total heads
+
+
+
+
[0].totalTracks
+
+
+
+
X
+
+
total tracks
+
+
+
+
[0].tracksPerCylinder
+
+
+
+
X
+
+
tracks per cylinder
+
+
+
+
[0].sectorsPerTrack
+
+
+
+
X
+
+
sectors per track
+
+
+
+
[0].totalSectors
+
+
+
+
X
+
+
total sectors
+
+
+
+
[0].bytesPerSector
+
+
+
+
X
+
+
bytes per sector
+
+
+
+
[0].smartStatus
+
X
+
+
X
+
X
+
+
S.M.A.R.T Status (see Known Issues)
+
+
+
si.blockDevices(cb)
+
[{...}]
+
X
+
+
X
+
X
+
+
returns array of disks, partitions, raids and roms
+
+
+
+
[0].name
+
X
+
+
X
+
X
+
+
name
+
+
+
+
[0].type
+
X
+
+
X
+
X
+
+
type
+
+
+
+
[0].fstype
+
X
+
+
X
+
X
+
+
file system type (e.g. ext4)
+
+
+
+
[0].mount
+
X
+
+
X
+
X
+
+
mount point
+
+
+
+
[0].size
+
X
+
+
X
+
X
+
+
size in bytes
+
+
+
+
[0].physical
+
X
+
+
X
+
X
+
+
physical type (HDD, SSD, CD/DVD)
+
+
+
+
[0].uuid
+
X
+
+
X
+
X
+
+
UUID
+
+
+
+
[0].label
+
X
+
+
X
+
X
+
+
label
+
+
+
+
[0].model
+
X
+
+
X
+
+
+
model
+
+
+
+
[0].serial
+
X
+
+
+
X
+
+
serial
+
+
+
+
[0].removable
+
X
+
+
X
+
X
+
+
serial
+
+
+
+
[0].protocol
+
X
+
+
X
+
+
+
protocol (SATA, PCI-Express, ...)
+
+
+
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
+
+
+
+
tIO
+
X
+
+
X
+
+
+
write IOs on all mounted drives
+
+
+
+
rIO_sec
+
X
+
+
X
+
+
+
read IO per sec (* see notes)
+
+
+
+
wIO_sec
+
X
+
+
X
+
+
+
write IO per sec (* see notes)
+
+
+
+
tIO_sec
+
X
+
+
X
+
+
+
total IO per sec (* see notes)
+
+
+
+
ms
+
X
+
+
X
+
+
+
interval length (for per second values)
+
+
+
+
File System and File System Stats
+
+
+
+
Function
+
Result object
+
Linux
+
BSD
+
Mac
+
Win
+
Sun
+
Comments
+
+
+
+
+
si.fsSize(cb)
+
[{...}]
+
X
+
X
+
X
+
X
+
+
returns array of mounted file systems
+
+
+
+
[0].fs
+
X
+
X
+
X
+
X
+
+
name of file system
+
+
+
+
[0].type
+
X
+
X
+
X
+
X
+
+
type of file system
+
+
+
+
[0].size
+
X
+
X
+
X
+
X
+
+
sizes in bytes
+
+
+
+
[0].used
+
X
+
X
+
X
+
X
+
+
used in bytes
+
+
+
+
[0].use
+
X
+
X
+
X
+
X
+
+
used in %
+
+
+
+
[0].mount
+
X
+
X
+
X
+
X
+
+
mount point
+
+
+
si.fsStats(cb)
+
{...}
+
X
+
+
X
+
+
+
current transfer stats
+
+
+
+
rx
+
X
+
+
X
+
+
+
bytes read since startup
+
+
+
+
wx
+
X
+
+
X
+
+
+
bytes written since startup
+
+
+
+
tx
+
X
+
+
X
+
+
+
total bytes read + written since startup
+
+
+
+
rx_sec
+
X
+
+
X
+
+
+
bytes read / second (* see notes)
+
+
+
+
wx_sec
+
X
+
+
X
+
+
+
bytes written / second (* see notes)
+
+
+
+
tx_sec
+
X
+
+
X
+
+
+
total bytes reads + written / second
+
+
+
+
ms
+
X
+
+
X
+
+
+
interval length (for per second values)
+
+
+
+
Getting correct stats values
+
+
In disksIO() and fsStats() the
+ results / sec. values (rx_sec, IOPS, ...) are calculated correctly beginning with the second call of the function.
+ It is determined by calculating the difference of transferred bytes / IOs divided by the time between two calls of the function.
+
+
The first time you are calling one of this functions, you will get -1 for transfer rates.
+ The second time, you should then get statistics based on the time between the two calls ...
+
+
So basically, if you e.g. need a values for filesystem stats stats every second, your code should look like this:
In this section you will learn how to get general systeminformation data. We will also cover the "get-all" functions to get all data at once.
+
For function reference and examples we assume, that we imported systeminformation as follows:
+
const si = require('systeminformation');
+
Lib-Version and Time/Timezone
+
The first two functions just gibe back system information library version and time/timezone information of your machine:
+
+
+
+
Function
+
Result object
+
Linux
+
BSD
+
Mac
+
Win
+
Sun
+
Comments
+
+
+
+
+
si.version()
+
: string
+
X
+
X
+
X
+
X
+
X
+
lib version (no callback/promise)
+
+
+
si.time()
+
{...}
+
X
+
X
+
X
+
X
+
X
+
object (no callback/promise) with:
+
+
+
+
current
+
X
+
X
+
X
+
X
+
X
+
local (server) time
+
+
+
+
uptime
+
X
+
X
+
X
+
X
+
X
+
uptime
+
+
+
+
timezone
+
X
+
X
+
X
+
X
+
X
+
e.g. GMT+0200
+
+
+
+
timezoneName
+
X
+
X
+
X
+
X
+
X
+
e.g. CEST
+
+
+
+
Keep in mind, that there is another function si.versions() that will return versions of other system libraries and software packages
+
Get All At Once
+
The following three functions si.getStaticData(), si.getDynamicData() and si.getAllData() will return most of the available data in a single result object:
+
+
+
+
Function
+
Result object
+
Linux
+
BSD
+
Mac
+
Win
+
Sun
+
Comments
+
+
+
+
+
si.getStaticData(cb)
+
{...}
+
X
+
X
+
X
+
X
+
X
+
all static data at once
+
+
+
si.getDynamicData(srv,iface,cb)
+
{...}
+
X
+
X
+
X
+
X
+
X
+
all dynamic data at once
+
+
+
si.getAllData(srv,iface,cb)
+
{...}
+
X
+
X
+
X
+
X
+
X
+
all data at once
+
+
+
+
Static data is all hardware related (or more or less constant) data like system, baseboard, bios, OS, versions, cpu, network interfces, memory and disk layout
+
Dynamic data will return user, cpu-speed, load, processes, services, temperature, file system, network and disk stats, ...
+
As not all funtions are supported in each operating system the result object might be different in each OS.
+
ATTENTION: Use this only if you really need ALL information. Especially on Windows this can take really long (up to 20 seconds) because the underlying WMIC command is very slow when using it the first time.
Lightweight collection of 35+ functions to retrieve detailed hardware, system and OS information.
+
+
simple to use
+
get detailed information about system, cpu, baseboard, battery, memory, disks/filesystem, network, docker, software, services and processes
+
supports Linux, macOS, partial Windows, FreeBSD and SunOS support
+
no npm dependencies (for production)
+
+
+
Core Concept
+
Node.js comes with some basic OS information, but I always wanted a little more. So I came up to write this
+ little library. This library is still work in progress. It is supposed to be used as a backend/server-side library (will definilely not work within a browser). It requires node.js version 4.0 and above.
+
+
I was able to test it on several Debian, Raspbian, Ubuntu distributions as well as macOS (Mavericks, Yosemite, El Captain, Sierra, High Sierra) and some Windows 7, Windows 10, FreeBSD and SunOS machines.
+ Not all functions are supported on all operating systems. Have a look at the function reference in the docs to get further details.
+
If you have comments, suggestions & reports, please feel free to contact me on github!
+
I also created a nice little command line tool called mmon (micro-monitor) for Linux and macOS, also available via github and npm
+
+
+
Installation
+
$ npm install systeminformation --save
+
Usage
+
All functions (except version and time) are implemented as asynchronous functions. Here a small example how to use them:
+
const si = require('systeminformation');
+
+// promises style - new since version 3
+si.cpu()
+ .then(data => console.log(data))
+ .catch(error => console.error(error));
+
+
Callback, Promises, Awync Await
+
Remember: all functions (except version and time) are implemented as asynchronous functions! There are now three ways to consume them:
When omitting callback parameter (cb), then you can use all function in a promise oriented way. All functions (exept of version and time) are returning a promise, that you can consume:
works only with node.js v4.0.0 and above (using now internal ES6 promise function, arrow functions, ...)
+
Promises. As you can see in the documentation, you can now also use it in a promise oriented way. But callbacks are still supported.
+
Async/Await. Due to the promises support, systeminformation also works perfectly with the `async/await` pattern (available in node.jsv7.6.0 and above). See example in the docs.
Lightweight collection of 35+ functions to retrieve detailed hardware, system and OS information. For Linux, macOS, partial Windows, FreeBSD and SunOS support
+
+
+
+
+
+
+
+
+
+
7,676
+
Lines of code
+
+
+
...
+
Downloads last month
+
+
+
115
+
Dependends
+
+
+
+
+
+
+
+
+
+
Documentation
+
Detailed documentation and reference for Version 4.x.x
If you run into problems, please check out known issues page first. If you still have problems, please feel free to open an issue on our github page
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/docs/issues.html b/docs/issues.html
new file mode 100644
index 0000000..aedc13c
--- /dev/null
+++ b/docs/issues.html
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ systeminformation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Known Issues
+
+
macOS - Temperature
+
+
To be able to measure temperature on macOS I created a little additional package. Due to some difficulties in NPM with optionalDependencies
+ I unfortunately was getting unexpected warnings on other platforms. So I decided to drop this optional dependency for macOS - so by default,
+ you will not get correct values.
+
+
But if you need to detect macOS temperature just run the following additional installation command:
+
+
$ npm install osx-temperature-sensor --save
+
systeminformation will then detect this additional library and return the temperature when calling systeminformations standard function cpuTemperature()
+
+
Windows Temperature, Battery, ...
+
+
wmic - which is used to determine temperature and battery sometimes needs to be run with admin
+ privileges. So if you do not get any values, try to run it again with according privileges. If you still do not get any
+ values, your system might not support this feature. In some cases we also discovered that wmic returned incorrect temperature values.
+
+
Linux Temperature
+
+
In some cases you need to install the linux sensors package to be able to measure temperature e.g. on DEBIAN based systems by running
+
$ sudo apt-get install lm-sensors
+
+
Linux S.M.A.R.T. Status
+
+
To be able to detect S.M.A.R.T. status on Linux you need to install smartmontools. On DEBIAN based linux distributions you can install it by running:
+
$ sudo apt-get install smartmontools
+
+
Stats Functions
+
To get correct values with fsStats(), disksIO() and networkStats() please check this guide
+
+
Finding New Issues
+
If you still have problems, please feel free to open an issue on our github page
In this section you will learn how to get detailed information about network interfaces, network connections and statistics as well as some internet related information (latency, check availability of site):
+
For function reference and examples we assume, that we imported systeminformation as follows:
All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)
+
+
+
+
Function
+
Result object
+
Linux
+
BSD
+
Mac
+
Win
+
Sun
+
Comments
+
+
+
+
+
si.networkInterfaces(cb)
+
[{...}]
+
X
+
X
+
X
+
X
+
X
+
array of network interfaces
+
+
+
+
[0].iface
+
X
+
X
+
X
+
X
+
X
+
interface name
+
+
+
+
[0].ip4
+
X
+
X
+
X
+
X
+
X
+
ip4 address
+
+
+
+
[0].ip6
+
X
+
X
+
X
+
X
+
X
+
ip6 address
+
+
+
+
[0].mac
+
X
+
X
+
X
+
X
+
X
+
MAC address
+
+
+
+
[0].internal
+
X
+
X
+
X
+
X
+
X
+
true if internal interface
+
+
+
si.networkInterfaceDefault(cb)
+
: string
+
X
+
X
+
X
+
X
+
X
+
get name of default network interface
+
+
+
si.networkStats(iface,cb)
+
{...}
+
X
+
X
+
X
+
X
+
+
current network stats of given interface iface parameter is optional defaults to first external network interface
+
+
+
+
iface
+
X
+
X
+
X
+
X
+
+
interface
+
+
+
+
operstate
+
X
+
X
+
X
+
X
+
+
up / down
+
+
+
+
rx
+
X
+
X
+
X
+
X
+
+
received bytes overall
+
+
+
+
tx
+
X
+
X
+
X
+
X
+
+
transferred bytes overall
+
+
+
+
rx_sec
+
X
+
X
+
X
+
X
+
+
received bytes / second (* see notes)
+
+
+
+
tx_sec
+
X
+
X
+
X
+
X
+
+
transferred bytes per second (* see notes)
+
+
+
+
ms
+
X
+
X
+
X
+
X
+
+
interval length (for per second values)
+
+
+
si.networkConnections(cb)
+
[{...}]
+
X
+
X
+
X
+
X
+
+
current network network connections returns an array of all connections
+
+
+
+
[0].protocol
+
X
+
X
+
X
+
X
+
+
tcp or udp
+
+
+
+
[0].localaddress
+
X
+
X
+
X
+
X
+
+
local address
+
+
+
+
[0].localport
+
X
+
X
+
X
+
X
+
+
local port
+
+
+
+
[0].peeraddress
+
X
+
X
+
X
+
X
+
+
peer address
+
+
+
+
[0].peerport
+
X
+
X
+
X
+
X
+
+
peer port
+
+
+
+
[0].state
+
X
+
X
+
X
+
X
+
+
like ESTABLISHED, TIME_WAIT, ...
+
+
+
+
Site availability, Internet Latency
+
+
+
+
Function
+
Result object
+
Linux
+
BSD
+
Mac
+
Win
+
Sun
+
Comments
+
+
+
+
+
si.inetChecksite(url, cb)
+
{...}
+
X
+
X
+
X
+
X
+
X
+
response-time (ms) to fetch given URL
+
+
+
+
url
+
X
+
X
+
X
+
X
+
X
+
given url
+
+
+
+
ok
+
X
+
X
+
X
+
X
+
X
+
status code OK (2xx, 3xx)
+
+
+
+
status
+
X
+
X
+
X
+
X
+
X
+
status code
+
+
+
+
ms
+
X
+
X
+
X
+
X
+
X
+
response time in ms
+
+
+
si.inetLatency(host, cb)
+
: number
+
X
+
X
+
X
+
X
+
X
+
response-time (ms) to external resource host parameter is optional (default 8.8.8.8)
+
+
+
+
Getting correct stats values
+
+
In networkStats() the
+ results / sec. values (rx_sec, tx_sec, ...) are calculated correctly beginning with the second call of the function.
+ It is determined by calculating the difference of transferred bytes / IOs divided by the time between two calls of the function.
+
+
The first time you are calling one of this functions, you will get -1 for transfer rates.
+ The second time, you should then get statistics based on the time between the two calls ...
+
+
So basically, if you e.g. need a values for filesystem stats stats every second, your code should look like this:
In this section you will learn how to get information about the installed operating system, versions of installed development specific software packages, shell and users online:
+
For function reference and examples we assume, that we imported systeminformation as follows:
+
const si = require('systeminformation');
+
Operating System, Shell, Versions, Users
+
All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)
In fsStats(), disksIO() and networkStats() the
+ results / sec. values (rx_sec, IOPS, ...) are calculated correctly beginning with the second call of the function.
+ It is determined by calculating the difference of transferred bytes / IOs divided by the time between two calls of the function.
+
+
The first time you are calling one of this functions, you will get -1 for transfer rates.
+ The second time, you should then get statistics based on the time between the two calls ...
+
+
So basically, if you e.g. need a values for network stats every second, your code should look like this:
The following trademarks are the properties of their respective owners as listed below. Should any trademark attribution be missing, mistaken or erroneous, please contact us as soon as possible for rectification.
+
+
Node.js is a trademark of Joyent Inc.
+
Linux is a registered trademark of Linus Torvalds
+
Apple, macOS, OS X are registered trademarks of Apple Inc.
+
Windows is a registered trademark of Microsoft Corporation
+
Intel is a trademark of Intel Corporation
+
AMD is a trademark of Advanced Micro Devices Inc.
+
Raspberry Pi is a trademark of the Raspberry Pi Foundation
+
Debian is a trademark of the Debian Project
+
FreeBSD is a registered trademark of The FreeBSD Foundation
+
Docker is a trademark of Docker, Inc.
+
Ubuntu is a trademark of Canonical Ltd.
+
CentOS is a trademark of Read Hat Inc.
+
Sun, Solaris, OpenSolaris are registered trademarks of Sun Microsystems
+
BSD is a registered trademark of UUnet Technologies, Inc.
+
UNIX is a registered trademark of The Open Group.
+
NVIDIA is a registered trademark of NVIDIA Corporation.
+
MSI is a registered trademark Micro-Star International Co.
+
DELL is a registered trademark of Dell Inc.
+
ASUS is a registered trademark of ASUSTeK Computer.
+
+
All other trademarks are the property of their respective owners.
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/battery.js b/lib/battery.js
index 2a8a583..758bda4 100644
--- a/lib/battery.js
+++ b/lib/battery.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/cpu.js b/lib/cpu.js
index f48e0e5..eb473d9 100644
--- a/lib/cpu.js
+++ b/lib/cpu.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/docker.js b/lib/docker.js
index d00e78f..4556553 100644
--- a/lib/docker.js
+++ b/lib/docker.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/dockerSocket.js b/lib/dockerSocket.js
index 12e0ac2..4718d44 100644
--- a/lib/dockerSocket.js
+++ b/lib/dockerSocket.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/filesystem.js b/lib/filesystem.js
index 5a3ad8e..6fb7eee 100644
--- a/lib/filesystem.js
+++ b/lib/filesystem.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/graphics.js b/lib/graphics.js
index dc0810d..c72056c 100644
--- a/lib/graphics.js
+++ b/lib/graphics.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/index.js b/lib/index.js
index 75a1e2e..4939af0 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// Contributors: Guillaume Legrain (https://github.com/glegrain)
diff --git a/lib/internet.js b/lib/internet.js
index dd96007..51b7b76 100644
--- a/lib/internet.js
+++ b/lib/internet.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/memory.js b/lib/memory.js
index 7171669..d34ee1f 100644
--- a/lib/memory.js
+++ b/lib/memory.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/network.js b/lib/network.js
index cd2e993..00d1deb 100644
--- a/lib/network.js
+++ b/lib/network.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
@@ -368,7 +368,7 @@ function networkInterfaces(callback) {
type = detail.type;
}
});
- if (iface.toLowerCase().indexOf('wlan') >= 0 || ifaceName.toLowerCase().indexOf('wlan') >= 0 || ifaceName.toLowerCase().indexOf('wireless') >= 0) {
+ if (dev.toLowerCase().indexOf('wlan') >= 0 || ifaceName.toLowerCase().indexOf('wlan') >= 0 || ifaceName.toLowerCase().indexOf('wireless') >= 0) {
type = 'wireless';
}
}
diff --git a/lib/osinfo.js b/lib/osinfo.js
index 3074171..0d91667 100644
--- a/lib/osinfo.js
+++ b/lib/osinfo.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/processes.js b/lib/processes.js
index 8ff59f3..01817a3 100644
--- a/lib/processes.js
+++ b/lib/processes.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/system.js b/lib/system.js
index c91b8f4..d03b7fc 100644
--- a/lib/system.js
+++ b/lib/system.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/users.js b/lib/users.js
index 7302c39..9593c8f 100644
--- a/lib/users.js
+++ b/lib/users.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT
diff --git a/lib/util.js b/lib/util.js
index ccc0205..489a684 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -4,7 +4,7 @@
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
-// Copyright: (c) 2014 - 2018
+// Copyright: (c) 2014 - 2019
// Author: Sebastian Hildebrandt
// ----------------------------------------------------------------------------------
// License: MIT