Socket
Socket
Sign inDemoInstall

systeminformation

Package Overview
Dependencies
Maintainers
1
Versions
653
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systeminformation - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

7

package.json
{
"name": "systeminformation",
"version": "3.0.0",
"version": "3.0.1",
"description": "Simple system and OS information library",

@@ -21,5 +21,10 @@ "license": "MIT",

"cpu",
"cpuload",
"memory",
"file system",
"fsstats",
"diskio",
"netstats",
"network",
"network connections",
"processes",

@@ -26,0 +31,0 @@ "users",

31

README.md

@@ -32,3 +32,3 @@ # systeminformation

// promises style
// promises style - new in version 3
si.cpu()

@@ -45,5 +45,5 @@ .then(data => console.log(data))

- `cpuCurrentspeed`: now returns an object with current minimal, maximal and average CPU frequencies of all cores.
- `mem`: now supports also newer versions of `free` (Version 3.3.10 and above); extended information `avaliable` (potentially available memory)
- `fsStats`: added information sum bytes read + write (tx) and sum transfer rate/sec (tx_sec)
- `networkInterfaces`: now providing one more detail: internal - true if this is an internal interface like "lo"
- `mem`: now supports also `free` (Version 3.3.10 and above); extended information `avaliable` (potentially available memory)
- `fsStats`: added information sum bytes read + write (tx) and sum transfer rate/sec (tx_sec)
- `networkConnections`: instead of only counting sockets, you now get an array of objects with connection details for each socket (protocol, local and peer address, state)

@@ -61,3 +61,3 @@ - `users`: now provides an array of objects with users online including detailed session information (login date/time, ip address, terminal, command)

- several bug fixes (like assess errors)
- several bug fixes (like assess errors in `cpuCurrentspeed`, potentially incorrect results in `users`, ...)
- testet on even more platforms and linux distributions

@@ -174,5 +174,5 @@

| si.cpuCurrentspeed(cb) | X | X | current CPU speed (in GHz)|
| - avg | X | | avg CPU speed (all cores) |
| - min | X | | min CPU speed (all cores) |
| - max | X | | max CPU speed (all cores) |
| - avg | X | X | avg CPU speed (all cores) |
| - min | X | X | min CPU speed (all cores) |
| - max | X | X | max CPU speed (all cores) |
| si.cpuTemperature(cb) | X | | CPU temperature (if sensors is installed) |

@@ -213,3 +213,3 @@ | - main | X | | main temperature |

| - tIO_sec | X | X | total IO per sec (* see notes) |
| - ms | X | | interval length (for per second values) |
| - ms | X | X | interval length (for per second values) |
| si.networkInterfaces(cb) | X | X | array of network interfaces |

@@ -235,3 +235,5 @@ | - [0].iface | X | X | interface name |

| - [0].state | X | X | like ESTABLISHED, TIME_WAIT, ... |
| si.currentLoad(cb) | X | X | CPU-Load in % |
| si.currentLoad(cb) | X | X | CPU-Load |
| - avgload | X | X | average load |
| - currentload | X | X | CPU-Load in % |
| si.fullLoad(cb) | X | X | CPU-full load since bootup in % |

@@ -244,2 +246,5 @@ | si.services('mysql, apache2', cb) | X | X | pass comma separated string of services |

| si.processes(cb) | X | X | # running processes |
| - all | X | X | # of all processes |
| - running | X | X | # of all processes running |
| - blocked | X | X | # of all processes blocked |
| si.processLoad('apache2',cb) | X | X | detailed information about given process |

@@ -286,6 +291,8 @@ | - proc | X | X | process name |

**Promises Style** (new in version 3.0)
### Promises
When omitting callback parameter (cb), then you can use all function in a promise oriented way:
**Promises Style** is new in version 3.0.
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 promis, that you can consume:
```

@@ -323,2 +330,3 @@ si.networkStats('eth1')

| -------------- | -------------- | -------- |
| 3.0.1 | 2016-08-17 | Bug-Fix disksIO, users, updated docs |
| 3.0.0 | 2016-08-03 | new major version 3.0 |

@@ -363,2 +371,3 @@ | 2.0.5 | 2016-03-02 | changed .gitignore |

- Quentin Busuttil [Buzut](https://github.com/Buzut)
- lapsio [lapsio](https://github.com/lapsio)

@@ -365,0 +374,0 @@ ## Copyright Information

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc