Skip to content

🔋ℹ️ A simple utility that displays minimal battery information.

License

Notifications You must be signed in to change notification settings

jaffreyjoy/batinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

batinfo

A simple utility that displays minimal battery information.

This utility was built to counter the battery indicator missing issue in Windows 10 for me. Apparently, this could also be used to view the battery's charging information while using a command-line OS like ubuntu-server, etc.

Installation (Windows)

 > npm i -g batinfo
OR

Installation (UNIX based OS)

 $ sudo npm i -g batinfo

Usage (after completing above step)

H:\__tryouts\batinfo>batinfo

🔋  Charge Remaining: 88%

🔌  Charging: YES ⚡

⏲️  Time remaining: Not available

The "Time remaining" functionality is only available on UNIX based OS, while the battery is discharging. The above command was run on a Windows machine, hence the "Time remaining" functionality displays as "Not Available".

Run (from source)

 $ git clone https://www.github.com/jaffreyjoy/batinfo
 $ cd batinfo 
 $ npm i
 $ node index.js

Credits

systeminformation 🙌

License

MIT