# linux-battery

> Get info about your battery in Linux

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

## Install

```sh
npm install linux-battery
pnpm add linux-battery
yarn add linux-battery
bun add linux-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 | 3.0.1 |
| Published | 2015-10-08 |
| First published | 2015-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Kevin Martensson |
| Maintainers | kevva |
| Keywords | battery, info, level, linux |

## Links

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

## Dependencies (4)

- [pify](https://npm.io/package/pify.md) ^2.2.0
- [camelcase-keys](https://npm.io/package/camelcase-keys.md) ^1.0.0
- [pinkie-promise](https://npm.io/package/pinkie-promise.md) ^1.0.0
- [linux-batteries](https://npm.io/package/linux-batteries.md) ^2.0.0

## Recent versions

- 3.0.1 (latest) — 2015-10-08
- 3.0.0 — 2015-10-08
- 2.0.0 — 2015-05-28
- 1.1.0 — 2015-05-25
- 1.0.0 — 2015-05-24

## README

# linux-battery

> Get info about your battery in Linux


## Install

```
$ npm install --save linux-battery
```


## Usage

```js
const linuxBattery = require('linux-battery');

linuxBattery().then(battery => {
	console.log(battery);
	/*
	[{
		nativePath: 'BAT0',
		vendor: 'innotek',
		model: '1',
		serial: '0',
		powerSupply: 'yes',
		...
	}]
	*/
});
```


## Related

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


## License

MIT © [Kevin Martensson](http://github.com/kevva)

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