id-dom 0.0.2 → 0.0.3

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 +12 -6
  2. package/package.json +1 -1
package/Readme.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # id-dom
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/id-dom.svg)](https://www.npmjs.com/package/id-dom)
4
+ [![npm downloads](https://img.shields.io/npm/dm/id-dom.svg)](https://www.npmjs.com/package/id-dom)
5
+ [![GitHub stars](https://img.shields.io/github/stars/iWhatty/id-dom.svg?style=social)](https://github.com/iWhatty/id-dom)
6
+ [![License](https://img.shields.io/github/license/iWhatty/id-dom.svg)](https://github.com/iWhatty/id-dom/blob/main/LICENSE.md)
7
+
8
+
3
9
  **Deterministic DOM element getters by ID (typed, tiny, modern).**
4
10
 
5
11
  `id-dom` is a small utility for grabbing DOM references safely **by `id`**, with predictable behavior:
6
12
 
7
- ***Typed getters** (`button('saveBtn')`, `input('name')`, etc.)
8
- ***Strict or optional** mode (`throw` vs `null`)
9
- ***Short optional alias** (`.opt`)
10
- ***Scopable** to a root (`document`, `ShadowRoot`, or an `Element`)
11
- ***Centralized error handling** (`onError`, optional `warn`)
12
- ***Zero deps**
13
+ * **Typed getters** (`button('saveBtn')`, `input('name')`, etc.)
14
+ * **Strict or optional** mode (`throw` vs `null`)
15
+ * **Short optional alias** (`.opt`)
16
+ * **Scopable** to a root (`document`, `ShadowRoot`, or an `Element`)
17
+ * **Centralized error handling** (`onError`, optional `warn`)
18
+ * **Zero deps**
13
19
 
14
20
  This is deliberately **not** a selector framework — it’s a tiny “ID-first” primitive for clean, safe DOM wiring.
15
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "id-dom",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Deterministic DOM element getters by ID (typed, tiny, modern).",
5
5
  "author": "DR.WATT",
6
6
  "license": "SEE LICENSE IN LICENSE",