... text ...
For function reference and examples we assume, that we imported systeminformation as follows:
const si = require('systeminformation');
Detected Keyboard Devices
All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)
| Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
|---|---|---|---|---|---|---|---|
| si.keyboard(cb) | [{...}] | X | X | X | keyboard information | ||
| name | X | X | X | keyboard name | |||
| vendor | X | X | X | vendor / vendor id | |||
| model | X | X | X | model / product id | |||
| serial | X | X | X | serial number | |||
| connection | X | X | X | e.g. 'internal', 'usb', 'bluetooth' | |||
Example
[
{
name: 'Apple Internal Keyboard / Trackpad',
vendor: 'Apple',
model: '0x0359',
serial: 'XXXXXXXXXXXXXXXXXXXXXXX',
connection: 'internal'
}
]
|
|||||||