A MultiaddrMatcher allows interpreting a multiaddr as a certain type of multiaddr

interface MultiaddrMatcher {
    matchers: Matcher[];
    exactMatch(ma): boolean;
    matches(ma): boolean;
}

Properties

Methods

Properties

matchers: Matcher[]

The matchers that make up this MultiaddrMatcher - useful if you want to make your own custom matchers

Methods

  • Returns true if the passed multiaddr terminates as this type of multiaddr

    Parameters

    Returns boolean

  • Returns true if the passed multiaddr can be treated as this type of multiaddr

    Parameters

    Returns boolean