P2P: MultiaddrMatcher = ...

Matches peer addresses

Example

import { multiaddr } from '@multiformats/multiaddr'
import { P2P } from '@multiformats/multiaddr-matcher'

P2P.matches(multiaddr('/ip4/123.123.123.123/tcp/1234/p2p/QmFoo')) // true