GitXplorerGitXplorer
k

battery-path

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
6a3a8ca7c98d0b9064c3284c818373061af095b5

chore(deps): tape@5.9.0

rrenovate[bot] committed 4 months ago
Unverified
efaf5efbb7bb98e92972cc374459185657dffc41

chore(deps): tape@5.7.5

rrenovate[bot] committed a year ago
Unverified
64c91f87b9bd03420b6a21b85d602406488e7bb7

chore(deps): tape@5.7.4

rrenovate[bot] committed a year ago
Unverified
1234179abe26b37c08f5f8810070d4713002497b

chore(deps): tape@5.7.2

rrenovate[bot] committed a year ago
Unverified
2edd6d61eaffa7dfc39d48808bd46a2b1f87561a

chore(deps): tape@5.7.0

rrenovate[bot] committed a year ago
Unverified
86e43b35ceb5ccfcc1a528333c72d00cb0fac162

chore(deps): tape@5.6.6

rrenovate[bot] committed a year ago

README

The README file for this repository.

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

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

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

Installation

$ npm install battery-path

API

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

batteryPath(battery)

Returns the String path to battery.