Split app/core up into domain-oriented files

This commit is contained in:
Jon Staab
2026-06-08 15:33:38 -07:00
parent ea6b63de53
commit 926b31de78
171 changed files with 2902 additions and 2628 deletions
+5
View File
@@ -1,3 +1,4 @@
import {identity} from "@welshman/lib"
import * as nip19 from "nostr-tools/nip19"
import {range, DAY, hexToBytes, bytesToHex} from "@welshman/lib"
@@ -66,3 +67,7 @@ export const buildUrl = (base: string | URL, ...pathname: string[]) => {
export const addPeriod = (s: string) => (s + ".").replace(/\.+$/, ".")
export const normalizeTopic = (topic: string) => topic.trim().replace(/^#+/, "").toLowerCase()
export const fromCsv = (s: string) => (s || "").split(",").filter(identity)
export const stripPrefix = (m: string) => m.replace(/^\w+: /, "")