Skip to content

0xsuid/windows-battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Windows OS Battery Information Library for Node.JS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published