Documentation
    Preparing search index...

    Function isSourceLocation

    • Whether value is a NIP-5D source location: an absolute http, https, ssh, git or nostr URL, or Git's scp-like [user@]host:path syntax. Local paths and file URLs are rejected.

      Parameters

      • value: string | undefined

        Candidate source tag value

      Returns boolean

      true only for an accepted location format

      isSourceLocation('git@git.example.com:owner/napplet.git'); // true