$ cnpm install @libp2p/components
Container for libp2p components
$ npm i @libp2p/components
import { Components } from '@libp2p/components'
const components = new Components({
// .. components here
})
// later
components.getPeerId()
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Copyright 2013 - present © cnpmjs.org | Home |