systeminformation 5.21.22 → 5.21.24

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014-2023 Sebastian Hildebrandt
3
+ Copyright (c) 2014-2024 Sebastian Hildebrandt
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
package/README.md CHANGED
@@ -28,28 +28,6 @@
28
28
  [![Caretaker][caretaker-image]][caretaker-url]
29
29
  [![MIT license][license-img]][license-url]
30
30
 
31
- ### Merry Christmas and Happy new year
32
-
33
- ```
34
- .''.
35
- .''. . *''* :_\/_:
36
- :_\/_: _\(/_ .:.*_\/_* : /\ :
37
- .''.: /\ : ./)\ ':'* /\ * : '..'.
38
- :_\/_:'.:::. ' *''* * '.\'/.' _\(/_
39
- : /\ : ::::: *_\/_* -= o =- /)\
40
- '..' ':::' * /\ * .'/.\'. '
41
- *..* :
42
- *
43
- * /.\ * * . *
44
- . /..'\ . . * .
45
- */'.'\* . . . * *
46
- * /.''.'\ * . . . *
47
- . */.'.'.\*
48
- ...".""""/'.''.'.\""."."...
49
- ^^^[_]^^^*
50
- ```
51
- I wish you all a Merry Christmas and a peaceful New Year 2024.
52
-
53
31
  ## The Systeminformation Project
54
32
  This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 600 versions published, up to 8 mio downloads per month, > 220 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
55
33
 
@@ -1077,7 +1055,7 @@ All other trademarks are the property of their respective owners.
1077
1055
 
1078
1056
  >The [`MIT`][license-url] License (MIT)
1079
1057
  >
1080
- >Copyright © 2014-2023 Sebastian Hildebrandt, [+innovations](http://www.plus-innovations.com).
1058
+ >Copyright © 2014-2024 Sebastian Hildebrandt, [+innovations](http://www.plus-innovations.com).
1081
1059
  >
1082
1060
  >Permission is hereby granted, free of charge, to any person obtaining a copy
1083
1061
  >of this software and associated documentation files (the "Software"), to deal
package/lib/audio.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/battery.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/bluetooth.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/cli.js CHANGED
@@ -7,7 +7,7 @@
7
7
  // ----------------------------------------------------------------------------------
8
8
  // Description: System Information - library
9
9
  // for Node.js
10
- // Copyright: (c) 2014 - 2023
10
+ // Copyright: (c) 2014 - 2024
11
11
  // Author: Sebastian Hildebrandt
12
12
  // ----------------------------------------------------------------------------------
13
13
  // License: MIT
package/lib/cpu.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
@@ -733,6 +733,7 @@ function getCpu() {
733
733
  lines = stdout.toString().split('\n');
734
734
  }
735
735
  modelline = util.getValue(lines, 'model name') || modelline;
736
+ modelline = util.getValue(lines, 'bios model name') || modelline;
736
737
  const modellineParts = modelline.split('@');
737
738
  result.brand = modellineParts[0].trim();
738
739
  result.speed = modellineParts[1] ? parseFloat(modellineParts[1].trim()) : 0;
@@ -765,8 +766,8 @@ function getCpu() {
765
766
 
766
767
  const threadsPerCore = util.getValue(lines, 'thread(s) per core') || '1';
767
768
  const processors = util.getValue(lines, 'socket(s)') || '1';
768
- let threadsPerCoreInt = parseInt(threadsPerCore, 10); // threads per code (normally only for performance cores)
769
- let processorsInt = parseInt(processors, 10) || 1; // number of sockets / processor units in machine (normally 1)
769
+ const threadsPerCoreInt = parseInt(threadsPerCore, 10); // threads per code (normally only for performance cores)
770
+ const processorsInt = parseInt(processors, 10) || 1; // number of sockets / processor units in machine (normally 1)
770
771
  const coresPerSocket = parseInt(util.getValue(lines, 'core(s) per socket'), 10); // number of cores (e.g. 16 on i12900)
771
772
  result.physicalCores = coresPerSocket ? coresPerSocket * processorsInt : result.cores / threadsPerCoreInt;
772
773
  result.performanceCores = threadsPerCoreInt > 1 ? result.cores - result.physicalCores : result.cores;
package/lib/docker.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/filesystem.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/graphics.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // Contributors: Guillaume Legrain (https://github.com/glegrain)
package/lib/internet.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/memory.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/network.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/osinfo.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
@@ -243,14 +243,18 @@ function osInfo(callback) {
243
243
  release[line.split('=')[0].trim().toUpperCase()] = line.split('=')[1].trim();
244
244
  }
245
245
  });
246
+ result.distro = (release.DISTRIB_ID || release.NAME || 'unknown').replace(/"/g, '');
247
+ result.logofile = getLogoFile(result.distro);
246
248
  let releaseVersion = (release.VERSION || '').replace(/"/g, '');
247
249
  let codename = (release.DISTRIB_CODENAME || release.VERSION_CODENAME || '').replace(/"/g, '');
250
+ const prettyName = (release.PRETTY_NAME || '').replace(/"/g, '');
251
+ if (prettyName.indexOf(result.distro + ' ') === 0) {
252
+ releaseVersion = prettyName.replace(result.distro + ' ', '').trim();
253
+ }
248
254
  if (releaseVersion.indexOf('(') >= 0) {
249
255
  codename = releaseVersion.split('(')[1].replace(/[()]/g, '').trim();
250
256
  releaseVersion = releaseVersion.split('(')[0].trim();
251
257
  }
252
- result.distro = (release.DISTRIB_ID || release.NAME || 'unknown').replace(/"/g, '');
253
- result.logofile = getLogoFile(result.distro);
254
258
  result.release = (releaseVersion || release.DISTRIB_RELEASE || release.VERSION_ID || 'unknown').replace(/"/g, '');
255
259
  result.codename = codename;
256
260
  result.codepage = util.getCodepage();
package/lib/printer.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/processes.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/system.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/usb.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/users.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/util.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/virtualbox.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/lib/wifi.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // ----------------------------------------------------------------------------------
6
6
  // Description: System Information - library
7
7
  // for Node.js
8
- // Copyright: (c) 2014 - 2023
8
+ // Copyright: (c) 2014 - 2024
9
9
  // Author: Sebastian Hildebrandt
10
10
  // ----------------------------------------------------------------------------------
11
11
  // License: MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.21.22",
3
+ "version": "5.21.24",
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)",