Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 709 Bytes

readme.md

File metadata and controls

41 lines (26 loc) · 709 Bytes


battery-level

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