@blockchaincommons/uniform-resources - v1.0.0-beta.3
    Preparing search index...

    A UR type: lowercase letters, digits and hyphens, as the reference's URType::new accepts them. The empty string is accepted, so ur:/… is a valid UR, although BCR-2020-005 asks for one or more characters.

    Index
    • Parameters

      • name: string

      Returns URType

      InvalidType when name has a character outside [a-z0-9-]; InvalidParameter for a non-string.

    • get name(): string

      The type string, e.g. "envelope".

      Returns string

    • name itself when it is already a URType, else a new one.

      Parameters

      Returns URType

      InvalidType; InvalidParameter for anything but a string or URType.

    • Whether every character of name is in [a-z0-9-] (the empty string is valid).

      Parameters

      • name: string

      Returns boolean

      InvalidParameter for a non-string.

    • The type string.

      Returns string