battery-level
v3.0.0
Published
Get current battery level
Downloads
2,000
Readme
Get current battery level
Install
$ npm install battery-level
Usage
const batteryLevel = require('battery-level');
batteryLevel().then(level => {
console.log(level);
//=> 0.55
});
Related
- battery-level-cli - CLI for this module
- browser-battery - Get battery information in a browser
- is-charging - Find out if a computer is charging
License
MIT © Andreas Gillström