Skip to content

mikeal/libp2p-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 browser and each will be configured for the transports in that environment.

The configurations are pulled 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.

About

Pre-configured libp2p for browser and node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published