@e280/stz 0.0.0-33 → 0.0.0-34
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 +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ import {pub, sub} from "@e280/stz"
|
|
|
121
121
|
|
|
122
122
|
<br/>
|
|
123
123
|
|
|
124
|
-
## 🧰 FN TOOLS
|
|
124
|
+
## 🧰 STZ FN TOOLS
|
|
125
125
|
|
|
126
126
|
### 🍏 `queue(fn)`
|
|
127
127
|
> execute calls in sequence (not concurrent)
|
|
@@ -178,7 +178,7 @@ we use `debounce` a lot in ui code, like on a user's keyboard input in a form fi
|
|
|
178
178
|
import {debounce} from "@e280/stz"
|
|
179
179
|
|
|
180
180
|
const fn = debounce(100, async() => {
|
|
181
|
-
await
|
|
181
|
+
await coolAction()
|
|
182
182
|
})
|
|
183
183
|
|
|
184
184
|
// each fn() call resets the timer
|
|
@@ -186,7 +186,7 @@ fn()
|
|
|
186
186
|
fn()
|
|
187
187
|
fn()
|
|
188
188
|
|
|
189
|
-
//
|
|
189
|
+
// coolAction is only called once here, other calls are redundant
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
### 🍏 `repeat(fn)`
|
|
@@ -211,7 +211,7 @@ stop()
|
|
|
211
211
|
|
|
212
212
|
<br/>
|
|
213
213
|
|
|
214
|
-
## 🧰 DATA UTILITIES
|
|
214
|
+
## 🧰 STZ DATA UTILITIES
|
|
215
215
|
|
|
216
216
|
### 🍏 Hex
|
|
217
217
|
> convert to/from hexadecimal string format
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e280/stz",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-34",
|
|
4
4
|
"description": "everyday ts fns for everything",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chase Moskal <chasemoskal@gmail.com>",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"_tscw": "tsc -w"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@e280/science": "^0.0.
|
|
29
|
+
"@e280/science": "^0.0.6",
|
|
30
30
|
"@types/node": "^24.2.0",
|
|
31
31
|
"npm-run-all": "^4.1.5",
|
|
32
32
|
"typescript": "^5.9.2"
|