Skip to content

mjvallone/is-charging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Find out if a computer is charging

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%