diff --git a/README.md b/README.md index a65c4c2..d286a6f 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ [![Code Quality: Javascript][lgtm-badge]][lgtm-badge-url] [![Total alerts][lgtm-alerts]][lgtm-alerts-url] [![Caretaker][caretaker-image]][caretaker-url] + [![Sponsoring][sponsor-badge]][sponsor-url] [![MIT license][license-img]][license-url] This is amazing. Started as a small project just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 1 mio downloads per month, > 4 mio downloads overall. Thank you to all who contributed to this project! @@ -850,6 +851,9 @@ All other trademarks are the property of their respective owners. [lgtm-alerts]: https://img.shields.io/lgtm/alerts/g/sebhildebrandt/systeminformation.svg?style=flat-square [lgtm-alerts-url]: https://lgtm.com/projects/g/sebhildebrandt/systeminformation/alerts +[sponsor-badge]: https://img.shields.io/badge/-Buy%20me%20a%20coffee-blue?style=flat-square +[sponsor-url]: https://www.buymeacoffee.com/systeminfo + [license-url]: https://github.com/sebhildebrandt/systeminformation/blob/master/LICENSE [license-img]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square [npmjs-license]: https://img.shields.io/npm/l/systeminformation.svg?style=flat-square diff --git a/docs/battery.html b/docs/battery.html index 843afcd..b7f4f0a 100644 --- a/docs/battery.html +++ b/docs/battery.html @@ -248,8 +248,7 @@ si.battery().then(data => console.log(data)); model: '', manufacturer: 'Apple', serial: 'F9Y19860Y9AH9XBAX' -} - +} diff --git a/docs/cpu.html b/docs/cpu.html index bf7aed0..27b5edd 100644 --- a/docs/cpu.html +++ b/docs/cpu.html @@ -311,8 +311,7 @@ si.cpu().then(data => console.log(data)); socket: 'LGA1151', cache: { l1d: 262144, l1i: 262144, l2: 2, l3: 16 }, flags: 'fpu vme de pse ...' -} - +}
const si = require('systeminformation');
+si.graphics().then(data => console.log(data));
+
+{
+ controllers: [
+ {
+ vendor: 'Intel',
+ model: 'Intel Iris Plus Graphics 655',
+ bus: 'Built-In',
+ vram: 1536,
+ vramDynamic: true
+ }
+ ],
+ displays: [
+ {
+ vendor: '',
+ model: 'Color LCD',
+ main: true,
+ builtin: false,
+ connection: 'Internal',
+ sizex: -1,
+ sizey: -1,
+ pixeldepth: 24,
+ resolutionx: 2560,
+ resolutiony: 1600,
+ currentResX: 2560,
+ currentResY: 1600,
+ positionX: 0,
+ positionY: 0,
+ currentRefreshRate: -1
+ }
+ ]
+}
+ const si = require('systeminformation');
+si.osInfo().then(data => console.log(data));
+
+{
+ platform: 'darwin',
+ distro: 'Mac OS X',
+ release: '10.15.3',
+ codename: 'macOS Catalina',
+ kernel: '19.3.0',
+ arch: 'x64',
+ hostname: 'hostname.local',
+ codepage: 'UTF-8',
+ logofile: 'apple',
+ serial: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
+ build: '19D76',
+ servicepack: '',
+ uefi: true
+}
+ const si = require('systeminformation');
+si.versions().then(data => console.log(data));
+
+{
+ kernel: '19.3.0',
+ openssl: '1.1.1d',
+ systemOpenssl: '2.8.3',
+ systemOpensslLib: 'LibreSSL',
+ node: '13.8.0',
+ v8: '7.9.317.25-node.28',
+ npm: '6.13.6',
+ yarn: '',
+ pm2: '',
+ gulp: '',
+ grunt: '',
+ git: '2.21.1',
+ tsc: '3.7.5',
+ mysql: 'gpl)',
+ redis: '',
+ mongodb: '',
+ apache: '2.4.41 (Unix)',
+ nginx: '',
+ php: '7.3.11',
+ docker: '19.03.5',
+ postfix: '3.2.2',
+ postgresql: '12.1',
+ perl: '5.18.4',
+ python: '2.7.16',
+ python3: '3.7.3',
+ pip: '',
+ pip3: '19.0.3',
+ java: '',
+ gcc: '4.2.1',
+ virtualbox: ''
+}
+ const si = require('systeminformation');
+si.users().then(data => console.log(data));
+
+[
+ {
+ user: 'yourname',
+ tty: 'ttys006',
+ date: '2020-02-01',
+ time: '21:20',
+ ip: '',
+ command: 'w -ih'
+ },
+ {
+ user: 'othername',
+ tty: 'ttys008',
+ date: '2020-02-01',
+ time: '21:20',
+ ip: '',
+ command: '-bash'
+ }
+]
+