windows-battery

1.0.2 • Public • Published

Windows battery

Windows OS battery information library for Node.js

Install

npm install windows-battery

Usage

const windows = require("windows-battery");
 
console.log(windows.battery())
//  { designcap: 37490,
//    currcap: 20660,
//    health: 55,
//    estcharge: 93,
//    ischarging: true }

Reference

  • designcap - Designed (initial) capacitiy of the battery in mAh.
  • currcap - Current capacity of the battery in mAh.
  • health - Battery health percentage.
  • estcharge - estimated current charge remaining in percentage - aka battery percentage.
  • ischarging - Battery is connected to AC power supply or not.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i windows-battery

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

3.98 kB

Total Files

4

Last publish

Collaborators

  • 0xsuid