Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.52 KB

README.md

File metadata and controls

67 lines (45 loc) · 1.52 KB

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