# battery-path

> Get the path to a battery

Latest version **1.0.0** (published 2014-10-18) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-10-18 |
| First published | 2014-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kenan Yildirim |
| Maintainers | kenan |
| Keywords | battery |

## Links

- npm: https://www.npmjs.com/package/battery-path
- Repository: https://github.com/KenanY/battery-path
- Issues: https://github.com/KenanY/battery-path/issues
- npm.io page: https://npm.io/package/battery-path

## Recent versions

- 1.0.0 (latest) — 2014-10-18

## README

# battery-path

Get the path to a battery. Probably only works on Linux.

Really simple module created to reduce code duplication across my battery
modules. Changes to this module will seamlessly propagate to other modules that
deal with batteries.

## Example

``` javascript
var batteryPath = require('battery-path');

batteryPath('BAT0');
// => '/sys/class/power_supply/BAT0'
```

## Installation

``` bash
$ npm install battery-path
```

## API

``` javascript
var batteryPath = require('battery-path');
```

### `batteryPath(battery)`

Returns the _String_ path to `battery`.

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