Skip to content

Commit

Permalink
docs: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored Apr 26, 2023
1 parent c147fdb commit e927919
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ npm i dagula
## Usage

```js
import { Dagula } from 'dagula'
import { getLibp2p } from 'dagula/p2p.js'
import * as Dagula from 'dagula/p2p.js'
import { CID } from 'multiformats/cid'

const libp2p = await getLibp2p()
const libp2p = await Dagula.getLibp2p()
const peer = '/dns4/elastic.dag.house/tcp/443/wss/p2p/bafzbeibhqavlasjc7dvbiopygwncnrtvjd2xmryk5laib7zyjor6kf3avm'
const dagula = await Dagula.fromNetwork(libp2p, { peer })

Expand Down

0 comments on commit e927919

Please sign in to comment.