use-green-mode 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +24 -3
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # 🌿 use-green-mode
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/use-green-mode?color=brightgreen)](https://www.npmjs.com/package/use-green-mode)
4
+ [![bundle size](https://img.shields.io/bundlephobia/minzip/use-green-mode)](https://bundlephobia.com/package/use-green-mode)
5
+ [![license](https://img.shields.io/npm/l/use-green-mode)](https://github.com/udhayavirat18/use-green-mode/blob/main/LICENSE)
6
+
3
7
  A lightweight, eco-friendly React hook that gracefully degrades your UI to save battery and data.
4
8
 
5
9
  Modern web apps are heavy. When a user's device is dying or their connection drops, running 60fps animations and loading 4K images drains their battery faster. `use-green-mode` watches native browser APIs and gives you a simple set of boolean flags to turn off the heavy stuff when your users need it most.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "use-green-mode",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
+ "description": "A lightweight, eco-friendly React hook that gracefully degrades your UI to save battery and data.",
4
5
  "main": "./dist/index.js",
5
6
  "module": "./dist/index.mjs",
6
7
  "types": "./dist/index.d.ts",
@@ -9,11 +10,31 @@
9
10
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
10
11
  "test": "echo \"Error: no test specified\" && exit 1"
11
12
  },
12
- "keywords": [],
13
+ "keywords": [
14
+ "react",
15
+ "react-hook",
16
+ "performance",
17
+ "sustainability",
18
+ "eco-friendly",
19
+ "battery-saving",
20
+ "green-web",
21
+ "optimization",
22
+ "low-power",
23
+ "data-saver",
24
+ "lightweight",
25
+ "frontend"
26
+ ],
13
27
  "author": "UdhayaKumar",
14
28
  "license": "MIT",
15
29
  "type": "commonjs",
16
- "description": "",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/udhayavirat18/use-green-mode.git"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/udhayavirat18/use-green-mode/issues"
36
+ },
37
+ "homepage": "https://github.com/udhayavirat18/use-green-mode#readme",
17
38
  "dependencies": {
18
39
  "@nanostores/react": "^1.0.0",
19
40
  "nanostores": "^1.1.1"