Skip to content

gillstrom/battery-level

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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