1.0.4 • Published 10 years ago

battery-present v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

battery-present

Dependency Status

Check if a specific battery is present. Probably only works on Linux.

Example

var batteryPresent = require('battery-present');

batteryPresent('BAT0', function(exists) {
  console.log(exists);
  // true
});

Installation

$ npm install battery-present

API

var batteryPresent = require('battery-present');

batteryPresent([battery='BAT0'], callback)

Given an optional String battery (defaults to 'BAT0'), calls callback(true) if that battery exists in the current system. Otherwise calls callback(false).

1.0.4

10 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago