ob

osx-battery

Get information about your Battery

Showing:

Popularity

Downloads/wk

26

GitHub Stars

12

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

5

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

osx-battery

Get information about your Battery

Install

$ npm install --save osx-battery

Usage

const osxBattery = require('osx-battery');

osxBattery().then(res => {
    console.log(res);
    /*
    { 
        adapterInfo: 0,
        amperage: -1178,
        avgTimeToEmpty: 380,
        avgTimeToFull: 65535,
        batteryInstalled: true,
        batteryInvalidWakeSeconds: 30,
        batterySerialNumber: 'C01447304DPF9CRA8',
        bootPathUpdated: 1431448419,
        cellVoltage: [ 4098, 4105, 4104, 0 ],
        currentCapacity: 7468,
        cycleCount: 39,
        ...
    }
    */
});

License

MIT © Andreas Gillström

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial