+6
-1
| { | ||
| "name": "os-theme", | ||
| "version": "0.0.1", | ||
| "version": "0.0.3", | ||
| "description": "Cross-platform OS theme detection (dark/light mode) with event-driven change notifications for Node.js and Bun", | ||
@@ -40,2 +40,7 @@ "module": "src/index.ts", | ||
| ], | ||
| "optionalDependencies": { | ||
| "@os-theme/darwin-arm64": "0.0.3", | ||
| "@os-theme/linux-x64": "0.0.3", | ||
| "@os-theme/win32-x64": "0.0.3" | ||
| }, | ||
| "devDependencies": { | ||
@@ -42,0 +47,0 @@ "@types/bun": "latest" |
+5
-7
@@ -7,9 +7,7 @@ # os-theme | ||
| - ๐ Detect current OS theme (`dark` or `light`) | ||
| - ๐ก Get notified when the theme changes | ||
| - ๐ฅ๏ธ Cross-platform โ macOS, Windows, Linux | ||
| - โก Native Rust core with dual runtime support | ||
| - ๐ข **Bun** โ direct FFI via `bun:ffi` (zero overhead) | ||
| - ๐ข **Node.js** โ N-API addon via `napi-rs` (works with tsx, ts-node, etc.) | ||
| - ๐ชถ Zero JS dependencies | ||
| - Detect current OS theme (`dark` or `light`) | ||
| - Get notified when the theme changes | ||
| - Cross-platform โ macOS, Windows, Linux | ||
| - Bun and Node support | ||
| - Zero JS dependencies | ||
@@ -16,0 +14,0 @@ ## Install |
20942
-0.22%4
300%306
-0.65%