Skip to content

Commit cbd3cdd

Browse files
Update readme
1 parent a55e2ce commit cbd3cdd

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This library provides a readable Svelte store to use a PWA's access to the [`Battery Status API`](https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API), available on the navigator. It allows you to read charging levels as well as certain charging thresholds.
44

5+
This package is part of a collection of PWA-related svelte-packages:
6+
7+
- [🖥️ Screen Wake Lock](https://www.npmjs.com/package/svelte-screen-wake-lock)
8+
- [🔋 Battery Status](https://www.npmjs.com/package/svelte-battery-status)
9+
- [📡 Network Information](https://www.npmjs.com/package/svelte-network-information)
10+
511
## Install
612

713
```text
@@ -54,3 +60,11 @@ The following values are returned from the store.
5460
| **chargeCompleteInSec** | `number` / `undefined` | Amount of seconds until device is fully charged |
5561
| **dischargeCompleteInSec** | `number` / `undefined` | Amount of seconds until device is empty |
5662
| **level** | `number` / `undefined` | Value between 0 and 1, indicating the percent of current charge |
63+
64+
## Svelte Development Help
65+
66+
- [MSW w/ SvelteKit for local development](https://flaming.codes/posts/msw-in-sveltekit-for-local-development)
67+
- [License generator for SvelteKit-projects](https://flaming.codes/posts/license-generator-for-dependencies-in-sveltekit)
68+
- [Lazy-loading modules in SvelteKit](https://flaming.codes/posts/lazy-loading-modules-in-svelte-to-import-components-on-demand)
69+
- [Custom $lib-folder in SvelteKit](https://cdn.sanity.io/images/udzdriea/production/3b194fc9edce1392fe39f9c141b3a81e84de398e-960x600.jpg?w=400&fm=webp)
70+
- [HMR for SvelteKit w/ Gitpod](https://flaming.codes/posts/setup-hmr-for-sveltekit-with-gitpod)

pkg/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This library provides a readable Svelte store to use a PWA's access to the [`Battery Status API`](https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API), available on the navigator. It allows you to read charging levels as well as certain charging thresholds.
44

5+
This package is part of a collection of PWA-related svelte-packages:
6+
7+
- [🖥️ Screen Wake Lock](https://www.npmjs.com/package/svelte-screen-wake-lock)
8+
- [🔋 Battery Status](https://www.npmjs.com/package/svelte-battery-status)
9+
- [📡 Network Information](https://www.npmjs.com/package/svelte-network-information)
10+
511
## Install
612

713
```text
@@ -54,3 +60,11 @@ The following values are returned from the store.
5460
| **chargeCompleteInSec** | `number` / `undefined` | Amount of seconds until device is fully charged |
5561
| **dischargeCompleteInSec** | `number` / `undefined` | Amount of seconds until device is empty |
5662
| **level** | `number` / `undefined` | Value between 0 and 1, indicating the percent of current charge |
63+
64+
## Svelte Development Help
65+
66+
- [MSW w/ SvelteKit for local development](https://flaming.codes/posts/msw-in-sveltekit-for-local-development)
67+
- [License generator for SvelteKit-projects](https://flaming.codes/posts/license-generator-for-dependencies-in-sveltekit)
68+
- [Lazy-loading modules in SvelteKit](https://flaming.codes/posts/lazy-loading-modules-in-svelte-to-import-components-on-demand)
69+
- [Custom $lib-folder in SvelteKit](https://cdn.sanity.io/images/udzdriea/production/3b194fc9edce1392fe39f9c141b3a81e84de398e-960x600.jpg?w=400&fm=webp)
70+
- [HMR for SvelteKit w/ Gitpod](https://flaming.codes/posts/setup-hmr-for-sveltekit-with-gitpod)

pkg/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.1",
2+
"version": "1.0.4",
33
"name": "svelte-battery-status",
44
"description": "A store implementation for Svelte to use the Battery Status API for PWAs",
55
"svelte": "index.js",

0 commit comments

Comments
 (0)