diff --git a/README.md b/README.md index 55f82f8..33a05ea 100644 --- a/README.md +++ b/README.md @@ -453,7 +453,22 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (m | | tx_sec | X | | X | | | total bytes reads + written / second | | | ms | X | | X | | | interval length (for per second values) | -#### 10. Network related functions +#### 10. File System + +| Function | Result object | Linux | BSD | Mac | Win | Sun | Comments | +| --------------- | ------------- | ----- | ------- | --- | --- | --- | -------- | +| si.printer(cb) | [{...}] | X | X | X | X | | get printer information | +| | [0].id | X | | X | X | | internal id | +| | [0].name | X | | X | X | | name | +| | [0].model | X | | X | X | | model | +| | [0].uri | X | | X | X | | printer URI | +| | [0].uuid | X | | X | X | | printer UUID | +| | [0].status | X | | X | X | | printer status (e.g. idle) | +| | [0].local | X | | X | X | | is local printer | +| | [0].default | X | | X | X | | is default printer | +| | [0].shared | X | | X | X | | is shared printer | + +#### 11. Network related functions | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments | | --------------- | ------------- | ----- | ------- | --- | --- | --- | -------- | @@ -507,7 +522,7 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (m | | ms | X | X | X | X | X | response time in ms | | si.inetLatency(host, cb) | : number | X | X | X | X | X | response-time (ms) to external resource
host parameter is optional (default 8.8.8.8)| -#### 11. Wifi networks +#### 12. Wifi networks | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments | | --------------- | ------------- | ----- | ------- | --- | --- | --- | -------- | | si.wifiNetworks(cb) | [{...}] | X | | X | X | | array of available wifi networks | @@ -522,7 +537,7 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (m | | [0].wpaFlags | X | | X | X | | array of WPA flags | | | [0].rsnFlags | X | | | | | array of RDN flags | -#### 12. Docker +#### 13. Docker | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments | | --------------- | ------------- | ----- | ------- | --- | --- | --- | -------- | @@ -620,7 +635,7 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (m | | [0].command | X | X | X | X | X | command and arguments | | si.dockerAll(cb) | {...} | X | X | X | X | X | list of all containers including their stats
and processes in one single array | -#### 13. Virtual Box +#### 14. Virtual Box | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments | | --------------- | ------------- | ----- | ------- | --- | --- | --- | -------- | diff --git a/docs/index.html b/docs/index.html index 97e3938..81e7847 100644 --- a/docs/index.html +++ b/docs/index.html @@ -284,6 +284,12 @@
Disks / FS
+ +
+
+
Printer
+
+
diff --git a/docs/main.js b/docs/main.js index cacf037..74632a7 100644 --- a/docs/main.js +++ b/docs/main.js @@ -11,6 +11,7 @@ function createMenu() { [1, 'os', 'OS'], [1, 'processes', 'Processes / Services'], [1, 'filesystem', 'Disks / FS'], + [1, 'printer', 'Printer'], [1, 'network', 'Network'], [1, 'wifi', 'Wifi'], [1, 'docker', 'Docker'], diff --git a/docs/printer.html b/docs/printer.html new file mode 100644 index 0000000..4fc13da --- /dev/null +++ b/docs/printer.html @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + systeminformation + + + + +
+ +
+
+ +
+
+
+
Printer
+
+

In this section you will learn how to get information about detected printers:

+

For function reference and examples we assume, that we imported systeminformation as follows:

+
const si = require('systeminformation');
+

Printer

+

All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionResult objectLinuxBSDMacWinSunComments
si.printer(cb){...}XXXprinter informatiom
idXXXinternal ID
nameXXXprinter name
modelXXXprinter model
uriXXXprinter URI
uuidXXXprinter UUID
statusXXXprinter status (e.g. idle)
localXXXis local printer
defaultXXXis default printer
sharedXXXis shared printer
+
Example
+
const si = require('systeminformation');
+si.printer().then(data => console.log(data));
+
+[
+  {
+    id: 0,
+    name: 'HP Color LaserJet CP2025 PS',
+    model: 'HP_Color_LaserJet_CP2025',
+    uri: 'http://192.168.1.1:631/printers/HP_Color_LaserJet_CP2025',
+    uuid: null,
+    local: true,
+    status: 'idle',
+    default: false,
+    shared: false
+  },
+  {
+    id: 1,
+    name: 'HP Color LaserJet CP2025 PS',
+    model: 'null',
+    uri: 'file:///dev/null',
+    uuid: null,
+    local: true,
+    status: 'idle',
+    default: true,
+    shared: true
+  }
+]
+
+
+
+
+
+
+
+ + + + + + +