Skip to content

Commit

Permalink
docs: import from @multiformats/multiaddr (#327)
Browse files Browse the repository at this point in the history
The usage in the README is using the old package name
  • Loading branch information
tabcat authored Jul 28, 2023
1 parent cf7e9c6 commit 4dedd4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ A standard way to represent addresses that
## Usage

```js
import { multiaddr } from 'multiaddr'
import { multiaddr } from '@multiformats/multiaddr'
const addr = multiaddr("/ip4/127.0.0.1/udp/1234")
// Multiaddr(/ip4/127.0.0.1/udp/1234)

Expand Down Expand Up @@ -89,7 +89,7 @@ addr.encapsulate('/sctp/5678')
To provide multiaddr resolvers you can do:

```js
import { resolvers } from 'multiaddr'
import { resolvers } from '@multiformats/multiaddr'

resolvers.set('dnsaddr', resolvers.dnsaddrResolver)
```
Expand Down

0 comments on commit 4dedd4b

Please sign in to comment.