Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Update redirects to libp2p
Browse files Browse the repository at this point in the history
Refinement of #24
  • Loading branch information
RichardLitt committed Oct 2, 2016
1 parent 3639f8e commit 5a6f3a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ peer-info JavaScript implementation
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https:/feross/standard)

> A PeerInfo object contains information about a
> [PeerID](https:/diasdavid/js-peer-id) and its
> [multiaddrs](https:/jbenet/js-multiaddr). This module is used by
> [PeerID](https:/libp2p/js-peer-id) and its
> [multiaddrs](https:/libp2p/js-multiaddr). This module is used by
> [IPFS](https:/ipfs/ipfs) and
> [libp2p](https:/diasdavid/js-libp2p).
> [libp2p](https:/libp2p/js-libp2p).
# Example

Expand Down Expand Up @@ -41,7 +41,7 @@ const PeerInfo = require('peer-info')
## const peer = new PeerInfo()

Creates a new PeerInfo instance and also generates a new underlying
[PeerID](https:/diasdavid/js-peer-id) for it.
[PeerID](https:/libp2p/js-peer-id) for it.

## const peer = new PeerInfo(peerId)

Expand All @@ -54,7 +54,7 @@ A list of multiaddresses instances that `peer` can be reached at.
## peer.multiaddr.add(addr)

Adds a new multiaddress that `peer` can be reached at. `addr` is an instance of
a [multiaddr](https:/jbenet/js-multiaddr).
a [multiaddr](https:/libp2p/js-multiaddr).

## peer.multiaddr.addSafe(addr)

Expand Down

0 comments on commit 5a6f3a5

Please sign in to comment.