{"id":19490616,"url":"https://github.com/sanjaysunil/battery-notification","last_synced_at":"2026-02-11T04:01:40.959Z","repository":{"id":63387559,"uuid":"567002786","full_name":"SanjaySunil/battery-notification","owner":"SanjaySunil","description":"Get notified on when you need to plug/unplug your charger to preserve battery life. ","archived":false,"fork":false,"pushed_at":"2022-11-21T09:52:03.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-12T00:51:50.184Z","etag":null,"topics":["battery","battery-notification","charging","node","notification","npm","reminder"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SanjaySunil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-16T21:34:28.000Z","updated_at":"2024-04-25T10:33:18.000Z","dependencies_parsed_at":"2023-01-22T19:01:28.473Z","dependency_job_id":null,"html_url":"https://github.com/SanjaySunil/battery-notification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SanjaySunil/battery-notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjaySunil%2Fbattery-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjaySunil%2Fbattery-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjaySunil%2Fbattery-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjaySunil%2Fbattery-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SanjaySunil","download_url":"https://codeload.github.com/SanjaySunil/battery-notification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjaySunil%2Fbattery-notification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["battery","battery-notification","charging","node","notification","npm","reminder"],"created_at":"2024-11-10T21:13:45.355Z","updated_at":"2026-02-11T04:01:40.942Z","avatar_url":"https://github.com/SanjaySunil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Header --\u003e\n\u003cbr/\u003e\u003cbr/\u003e\n\u003ch1 align=\"center\"\u003ebattery-notification\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    Get notified on when you need to plug/unplug your charger to preserve battery life.\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/SanjaySunil/battery-notification/issues/new?assignees=\u0026labels=Bug\u0026template=bug_report.md\u0026title=%5BBUG%5D\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/SanjaySunil/battery-notification/issues/new?assignees=\u0026labels=Suggestions\u0026template=suggestions.md\u0026title=%5BSUGGESTION%5D\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/h1\u003e\n\u003cbr/\u003e\u003cbr/\u003e\n\n\u003c!-- Description --\u003e\n## What's battery-notification?\n\n[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.\n\u003cbr /\u003e\n\n\n\n\u003c!-- Install --\u003e\n## Install\n```sh\n$ npm install battery-notification\n```\n\u003cbr /\u003e\n\n\n## Usage\n```sh\n$ battery-notification --help\n\nUsage: battery-notification [options]\n\nGet notified on when you need to plug/unplug your charger to preserve battery life.\n\nOptions:\n  -V, --version       output the version number\n  -l, --low \u003cvalue\u003e   Low battery level threshold\n  -h, --high \u003cvalue\u003e  High battery level threshold\n```\n\n\u003e **TIP:** You can also use the command ```battery``` instead of `battery-notification`.\n\n### Running the monitor\n```sh\n$ battery -l \u003cvalue\u003e -h \u003cvalue\u003e\n```\n\n**Example:**\n```sh\n$ battery -l 25 -h 95\n```\n\n\u003e **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%)\n\n\u003cbr /\u003e\n\n\n\u003c!-- License --\u003e\n## License\n\nCopyright © 2022 Sanjay Sunil (sanjaysunil@protonmail.com)\n\nDistributed under the MIT License. See `LICENSE` for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjaysunil%2Fbattery-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanjaysunil%2Fbattery-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjaysunil%2Fbattery-notification/lists"}