@darthcav/ts-utils 0.12.1 → 0.12.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.
- package/README.md +15 -7
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -11,12 +11,20 @@ A collection of utility functions for TypeScript applications and modules.
|
|
|
11
11
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
14
|
+
- `main`: bootstraps a Node.js process with startup logging, signal and error handlers, log flushing
|
|
15
|
+
on exit, and optional memory monitoring.
|
|
16
|
+
- `getConsoleLogger` and `getDummyLogger`: a configured LogTape console logger, and a no-op logger
|
|
17
|
+
for tests.
|
|
18
|
+
- `monitorMemory`: periodic uptime and memory usage reports.
|
|
19
|
+
- `millisecondsToString`: human-readable, localized durations.
|
|
20
|
+
- `osRelease`: OS name, version, and architecture on Linux and Windows.
|
|
21
|
+
- `RuntimeObject` with `isRuntimeObject`, `isString`, `asRuntimeObject`, `asString`, and
|
|
22
|
+
`toRuntimeObjectArray`: narrow `unknown` values such as parsed JSON without type assertions.
|
|
23
|
+
- `Assert`, `Equal`, `Extends`, `Not`, `IsAny`, `IsNever`, and `IsUnknown`: type-level assertions
|
|
24
|
+
for tests.
|
|
25
|
+
- `noop`: a function that does nothing.
|
|
26
|
+
|
|
27
|
+
ESM only, with TypeScript declarations included; requires Node.js 26 or later.
|
|
20
28
|
|
|
21
29
|
## Installation
|
|
22
30
|
|
|
@@ -353,7 +361,7 @@ public/ # Documentation output (generated)
|
|
|
353
361
|
|
|
354
362
|
[node-version]: https://img.shields.io/badge/node-%3E%3D26-orange.svg?style=flat-square
|
|
355
363
|
[node-url]: https://nodejs.org
|
|
356
|
-
[version-image]: https://img.shields.io/badge/version-0.12.
|
|
364
|
+
[version-image]: https://img.shields.io/badge/version-0.12.3-blue.svg?style=flat-square
|
|
357
365
|
[ci-badge]: https://github.com/darthcav/ts-utils/actions/workflows/tests.yml/badge.svg
|
|
358
366
|
[coverage-badge]:
|
|
359
367
|
https://codecov.io/github/darthcav/ts-utils/branch/dev/graph/badge.svg?token=RNEPER4KEI
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darthcav/ts-utils",
|
|
3
3
|
"description": "A collection of utility functions for TypeScript applications and modules",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "darthcav",
|
|
7
7
|
"url": "https://github.com/darthcav"
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"!dist/__tests__"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@logtape/logtape": "2.
|
|
27
|
+
"@logtape/logtape": "2.4.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@biomejs/biome": "2.
|
|
31
|
-
"@types/node": "26.6.
|
|
32
|
-
"prettier": "3.
|
|
30
|
+
"@biomejs/biome": "2.6.7",
|
|
31
|
+
"@types/node": "26.6.6",
|
|
32
|
+
"prettier": "3.10.1",
|
|
33
33
|
"typedoc": "0.28.20"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|