@multiformats/multiaddr-matcher
    Preparing search index...

    Interface MultiaddrMatcher

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

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

    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