libp2p-simple

0.1.0 • Public • Published

libp2p-simple

Pre-configured libp2p module.

Usage

const libp2p = require('libp2p-simple')
 
let node = libp2p() // returns libp2p instance.

Can be used in Node.js and in the browse and each will be configured for the transports in that environment.

The configurations are pull from js-ipfs nodejs and browser bundles.

API

libp2p([...args])

Arguments can be passed in any order. Valid arguments are:

  • Instance of PeerID.
  • Instance of PeerInfo.
  • Instance of PeerBook.

Readme

Keywords

none

Package Sidebar

Install

npm i libp2p-simple

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Unpacked Size

4.24 kB

Total Files

6

Last publish

Collaborators

  • mikeal