gillstrom / is-charging

Find out if a computer is charging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-charging

Find out if a computer is charging

Install

$ npm install 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 Strandman

About

Find out if a computer is charging

License:MIT License


Languages

Language:JavaScript 100.0%