Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 697 Bytes

readme.md

File metadata and controls

41 lines (23 loc) · 697 Bytes

is-charging

Find out if a computer is charging

Install

$ npm install --save is-charging

Usage

const isCharging = require('is-charging');

isCharging().then(result => {
	console.log(result);
	//=> true
});

API

isCharging()

Returns a promise that resolves in to a Boolean.

Related

License

MIT © Andreas Gillström