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 ...' -} - +} si.cpuFlags(cb) diff --git a/docs/graphics.html b/docs/graphics.html index abbde72..91e6d19 100644 --- a/docs/graphics.html +++ b/docs/graphics.html @@ -295,6 +295,44 @@ current refresh rate + + + +
Example
+
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
+    }
+  ]
+}
+ diff --git a/docs/index.html b/docs/index.html index b85b05b..0bafd8a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -172,7 +172,8 @@
- Read Documentation
+ +
Read Documentation
diff --git a/docs/os.html b/docs/os.html index ca1b442..2cf23c5 100644 --- a/docs/os.html +++ b/docs/os.html @@ -205,6 +205,29 @@ OS uses UEFI on startup + + + +
Example
+
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
+}
+ si.uuid(cb) {...} @@ -525,6 +548,46 @@ X virtualbox version + + + +
Example
+
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: ''
+}
+ si.users(cb) [{...}] @@ -595,6 +658,32 @@ X last command or shell + + + +
Example
+
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'
+  }
+]
+ diff --git a/docs/system.html b/docs/system.html index 2a29dbd..f76a6e2 100644 --- a/docs/system.html +++ b/docs/system.html @@ -289,7 +289,7 @@ si.baseboard().then(data => console.log(data)); version: '', serial: 'C80-xxxxxxxxxxx', assetTag: '' -} +} si.chassis(cb) @@ -386,8 +386,7 @@ si.chassis().then(data => console.log(data)); serial: 'C01xxxxxxxx', assetTag: 'Mac-99878xxxx...', sku: '' -} - +} diff --git a/package.json b/package.json index c135996..59aadd9 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,10 @@ "type": "git", "url": "https://github.com/sebhildebrandt/systeminformation.git" }, + "funding": { + "type": "Buy me a coffee", + "url": "https://www.buymeacoffee.com/systeminfo" + }, "os": [ "darwin", "linux",