Sanitizes a given domain string (e.g. Name.azero name.azero). By default, the domain will be trimmed and converted to lowercase.

interface SanitizeDomainOptions {
    lowercase?: boolean;
    removeDots?: boolean;
    removeOuterNonAlphanumeric?: boolean;
    replaceUnderscores?: boolean;
    trim?: boolean;
}

Properties

lowercase?: boolean
removeDots?: boolean
removeOuterNonAlphanumeric?: boolean
replaceUnderscores?: boolean
trim?: boolean