systeminformation 5.11.15 → 5.11.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@
30
30
  [![Sponsoring][sponsor-badge]][sponsor-url]
31
31
  [![MIT license][license-img]][license-url]
32
32
 
33
- This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 500 versions published, up to 4 mio downloads per month, > 75 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
33
+ This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 500 versions published, > 4 mio downloads per month, > 90 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
34
34
 
35
35
  ## New Version 5.0
36
36
 
@@ -70,7 +70,13 @@ Lightweight collection of 50+ functions to retrieve detailed hardware, system an
70
70
  ### Installation
71
71
 
72
72
  ```bash
73
- $ npm install systeminformation --save
73
+ npm install systeminformation --save
74
+ ```
75
+
76
+ or simpler
77
+
78
+ ```bash
79
+ npm install systeminformation
74
80
  ```
75
81
 
76
82
  #### Still need Version 4?
@@ -78,9 +84,14 @@ $ npm install systeminformation --save
78
84
  If you need version 4 (for compatibility reasons), you can install version 4 (latest release) like this
79
85
 
80
86
  ```bash
81
- $ npm install systeminformation@4 —save
87
+ npm install systeminformation@4 —save
82
88
  ```
83
89
 
90
+ or simpler
91
+
92
+ ```bash
93
+ npm install systeminformation@4
94
+ ```
84
95
 
85
96
  ### Usage
86
97
 
package/lib/filesystem.js CHANGED
@@ -852,7 +852,7 @@ function diskLayout(callback) {
852
852
  try {
853
853
  const outJSON = JSON.parse(out);
854
854
  if (outJSON && {}.hasOwnProperty.call(outJSON, 'blockdevices')) {
855
- devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fsType === null && item.parttype === null)); });
855
+ devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fsType === null && item.parttype === null && item.name.indexOf('ram') !== 0)); });
856
856
  }
857
857
  } catch (e) {
858
858
  // fallback to older version of lsblk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.11.15",
3
+ "version": "5.11.18",
4
4
  "description": "Advanced, lightweight system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",