is-charging
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/is-charging package

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i is-charging

Weekly Downloads

60

Version

2.0.0

License

MIT

Unpacked Size

3.16 kB

Total Files

4

Last publish

Collaborators

  • gillstrom