safe-try-with-ai 1.1.0 → 1.1.1
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.
- package/README.md +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ A lightweight JavaScript utility for **clean error handling** with optional **AI
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npm install safe-try-with-ai
|
|
11
|
-
|
|
11
|
+
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
@@ -24,6 +24,7 @@ if (err) {
|
|
|
24
24
|
} else {
|
|
25
25
|
console.log(result); // { x: 1 }
|
|
26
26
|
}
|
|
27
|
+
```
|
|
27
28
|
|
|
28
29
|
## Optional AI Runtime Suggestions
|
|
29
30
|
|
|
@@ -39,6 +40,7 @@ if (err) {
|
|
|
39
40
|
console.log("Suggestion:", err.suggestion); // AI suggestion
|
|
40
41
|
console.log("Fix:", err.fix); // Suggested fix
|
|
41
42
|
}
|
|
43
|
+
```
|
|
42
44
|
|
|
43
45
|
## Features
|
|
44
46
|
|
|
@@ -47,3 +49,10 @@ if (err) {
|
|
|
47
49
|
- Optional AI-style runtime error suggestions
|
|
48
50
|
- Zero dependencies
|
|
49
51
|
- Lightweight and fast
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
MIT
|
|
57
|
+
|
|
58
|
+
---
|