linux-battery
v3.0.1
Published
Get info about your battery in Linux
Downloads
2,603
Readme
linux-battery
Get info about your battery in Linux
Install
$ npm install --save linux-battery
Usage
const linuxBattery = require('linux-battery');
linuxBattery().then(battery => {
console.log(battery);
/*
[{
nativePath: 'BAT0',
vendor: 'innotek',
model: '1',
serial: '0',
powerSupply: 'yes',
...
}]
*/
});
Related
- battery-level - Get current battery level
License
MIT © Kevin Martensson