Home

Awesome

<h1 align="center"> <br> <img width="360" src="media/logo.png" alt="battery-level"> <br> <br> </h1>

Get current battery level

Install

$ npm install battery-level

Usage

const batteryLevel = require('battery-level');

(async () => {
	console.log(await batteryLevel());
	//=> 0.55
})();

API

batteryLevel()

Returns a Promise<number> with the battery level.

Related