Get notified on when you need to plug/unplug your charger to preserve battery life.
npm install battery-notification
Get notified on when you need to plug/unplug your charger to preserve battery life.
Report Bug
·
Request Feature
[battery-notification]() is a command-line tool which aims to notify you when your battery is too low, and when you need to unplug your charger when your device is at a sufficient battery level. The command-line tool allows you to set battery percentage thresholds for when you want to be notified, and is straight-forward to use.
sh
$ npm install battery-notification
`
Usage
`sh
$ battery-notification --helpUsage: battery-notification [options]
Get notified on when you need to plug/unplug your charger to preserve battery life.
Options:
-V, --version output the version number
-l, --low Low battery level threshold
-h, --high High battery level threshold
`> TIP: You can also use the command
`battery` instead of battery-notification.$3
`sh
$ battery -l -h
`Example:
`sh
$ battery -l 25 -h 95
`> NOTE: The threshold values are optional. If a threshold value is not specified, it will fall back to the default threshold value (low percentage warning: 20%, high percentage warning: 80%)
License
Copyright © 2022 Sanjay Sunil (sanjaysunil@protonmail.com)
Distributed under the MIT License. See
LICENSE` for more information.