Skip to content

net

Browser-safe networking helpers built around urlBuilder: a tolerant URL coercion + chainable builder that gracefully handles partial inputs (bare hosts, path-only strings, { url } wrappers), a small IPv4 / IPv6 address + CIDR toolkit (parsing and membership lookups), and email-address parsing (parseEmails / isEmail) that normalizes the CSV / single-string / array inputs email recipient and allow-list fields accept into a clean string[]. No node-only imports, so this module is the canonical home for anything URL-, IP-, or email-shaped that also has to run in a Vite / Webpack / esbuild client bundle. Node-only network helpers (e.g. DNS resolution) belong in a node-tagged package, not here.