commit 931dc5296392a1ab189f23d333b033036b939321
parent 8bd7931cf72401a21df064f581005235b3aa457d
Author: triesap <triesap@radroots.dev>
Date: Mon, 3 Nov 2025 07:26:22 +0000
utils: add text utilities providing a canonical symbol set and expose them in the public api; extend time helpers with a current-time in seconds accessor; remove the unused bindings dependency
Diffstat:
4 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/utils/package.json b/utils/package.json
@@ -37,7 +37,6 @@
"dependencies": {
"@noble/curves": "^1.6.0",
"@noble/hashes": "^1.4.0",
- "@radroots/radroots-common-bindings": "*",
"convert": "^5.5.1",
"geohashing": "^2.0.1",
"uuid": "^11.1.0",
diff --git a/utils/src/index.ts b/utils/src/index.ts
@@ -1,4 +1,5 @@
export * from "./errors/lib.js"
export * from "./id/lib.js"
+export * from "./text/lib.js"
export * from "./time/lib.js"
export * from "./types/lib.js"
diff --git a/utils/src/text/lib.ts b/utils/src/text/lib.ts
@@ -0,0 +1 @@
+export const root_symbol = "ยป`,-";
diff --git a/utils/src/time/lib.ts b/utils/src/time/lib.ts
@@ -1 +1,2 @@
export const time_now_ms = (): number => Math.floor(new Date().getTime() / 1000);
+export const time_now_s = (): number => Math.floor(Date.now() / 1000);