npm.io
2.0.0 • Published 8 years ago

is-charging

Licence
MIT
Version
2.0.0
Deps
3
Size
3 kB
Vulns
0
Weekly
0
Stars
76

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.

License

MIT Andreas Strandman

Keywords