Socket
Book a DemoInstallSign in
Socket

libp2p-simple

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libp2p-simple

Pre-configured libp2p module.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 24 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts