• Creates a Multiaddr from a node-friendly address object

    Parameters

    Returns Multiaddr

    Example

    import { fromNodeAddress } from '@multiformats/multiaddr'

    fromNodeAddress({address: '127.0.0.1', port: '4001'}, 'tcp')
    // Multiaddr(/ip4/127.0.0.1/tcp/4001)