Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyriejoshua/batteryhub
https://github.com/kyriejoshua/batteryhub
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyriejoshua/batteryhub
- Owner: kyriejoshua
- Created: 2020-09-20T07:27:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T15:05:17.000Z (about 4 years ago)
- Last Synced: 2024-12-12T19:53:46.536Z (20 days ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](https://img.shields.io/github/package-json/v/kyriejoshua/batteryHub?style=for-the-badge)
![](https://img.shields.io/npm/dy/batteryHub?style=for-the-badge)
![](https://img.shields.io/github/languages/code-size/kyriejoshua/batteryHub?style=for-the-badge)
![](https://img.shields.io/github/commit-activity/y/kyriejoshua/batteryHub?style=for-the-badge)## Installation
```shell
npm install batteryHub --save
yarn add batteryHub
```## Usage
* Javascript
```javascript
import { getBatteryInfo, requestPermission } from 'batteryHub';requestPermission();
getBatteryInfo();
```## Demo
* It will create a notification every time your computer changes its battery status.
### That's all
* hahaha.