Skip to content

Siwe.isUri

Check if the given URI is a valid RFC 3986 URI.

Imports

Named
import { Siwe } from 'ox'

Examples

import { Siwe } from 'ox'
 
Siwe.isUri('https://example.com/foo')
true

Definition

function isUri(
  value: string,
): false | string

Source: src/core/Siwe.ts

Parameters

value

  • Type: string

Value to check.

Return Type

false if invalid, otherwise the valid URI.

false | string