An open API service indexing awesome lists of open source software.

https://github.com/gillstrom/is-charging

Find out if a computer is charging
https://github.com/gillstrom/is-charging

charging cli javascript node

Last synced: 2 months ago
JSON representation

Find out if a computer is charging

Awesome Lists containing this project

README

        

# is-charging

> Find out if a computer is charging

## Install

```
$ npm install is-charging
```

## Usage

```js
const isCharging = require('is-charging');

isCharging().then(result => {
console.log(result);
//=> true
});
```

## API

### isCharging()

Returns a promise that resolves in to a `Boolean`.

## Related

* [is-charging-cli](https://github.com/gillstrom/is-charging-cli) - CLI for this module
* [battery-level](https://github.com/gillstrom/battery-level) - Get current battery level
* [browser-battery](https://github.com/gillstrom/browser-battery) - Get and watch battery information in a browser

## License

MIT © [Andreas Strandman](https://github.com/gillstrom)