is-charging

Find out if a computer is charging

Usage no npm install needed!

<script type="module">
  import isCharging from 'https://cdn.skypack.dev/is-charging';
</script>

README

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