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.
var batteryPath = require('battery-path');
batteryPath('BAT0');
// => '/sys/class/power_supply/BAT0'
$ npm install battery-path
var batteryPath = require('battery-path');
Returns the String path to battery
.