$ cnpm install libp2p-topology
Contains an implementation of the Topology interface
npm i libp2p-connection
import { Topology } from 'libp2p-topology'
import { MulticodecTopology } from 'libp2p-topology/multicodec-topology'
const topology = new Topology({ ... })
const multicodecTopology = new MulticodecTopology({ ... })
The libp2p implementation in JavaScript is a work in progress. As such, there are a few things you can do right now to help out:
Apache-2.0 or MIT © Protocol Labs
Copyright 2013 - present © cnpmjs.org | Home |