# osx-battery

> Get information about your Battery

Latest version **4.0.0** (published 2015-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install osx-battery
pnpm add osx-battery
yarn add osx-battery
bun add osx-battery
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2015-10-08 |
| First published | 2015-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Andreas Gillström |
| Maintainers | gillstrom |
| Keywords | app, battery, get, info, information, mac, osx |

## Links

- npm: https://www.npmjs.com/package/osx-battery
- Repository: https://github.com/gillstrom/osx-battery
- Homepage: https://github.com/gillstrom/osx-battery#readme
- Issues: https://github.com/gillstrom/osx-battery/issues
- npm.io page: https://npm.io/package/osx-battery

## Dependencies (5)

- [pify](https://npm.io/package/pify.md) ^2.2.0
- [obj-type](https://npm.io/package/obj-type.md) ^1.0.0
- [simple-plist](https://npm.io/package/simple-plist.md) 0.0.4
- [pinkie-promise](https://npm.io/package/pinkie-promise.md) ^1.0.0
- [lowercase-first-keys](https://npm.io/package/lowercase-first-keys.md) ^1.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2015-10-08
- 3.0.1 — 2015-05-25
- 2.0.0 — 2015-05-25
- 1.0.1 — 2015-05-23
- 1.0.0 — 2015-05-23

## README

# osx-battery

> Get information about your Battery


## Install

```
$ npm install --save osx-battery
```


## Usage

```js
const osxBattery = require('osx-battery');

osxBattery().then(res => {
	console.log(res);
	/*
	{ 
		adapterInfo: 0,
		amperage: -1178,
		avgTimeToEmpty: 380,
		avgTimeToFull: 65535,
		batteryInstalled: true,
		batteryInvalidWakeSeconds: 30,
		batterySerialNumber: 'C01447304DPF9CRA8',
		bootPathUpdated: 1431448419,
		cellVoltage: [ 4098, 4105, 4104, 0 ],
		currentCapacity: 7468,
		cycleCount: 39,
		...
	}
	*/
});
```


## Related

* [battery-level](https://github.com/gillstrom/battery-level) - Get current battery level


## License

MIT © [Andreas Gillström](http://github.com/gillstrom)

---
_Source: https://npm.io/package/osx-battery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
