You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

peer-info

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peer-info

IPFS Peer abstraction JavaScript implementation


Version published
Weekly downloads
4.3K
decreased by-46.81%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.4.0 (2015-11-06)

<a name="0.3.3"></a>

Readme

Source

peer-info JavaScript implementation

[ Build Status](https://travis-ci.org/diasdavid/js-peer-info) Dependency Status js-standard-style

IPFS Peer abstraction JavaScript implementation

Description

Usage

In Node.js through npm

$ npm install --save peer-info
var PeerInfo = require('peer-info')

In the Browser through browserify

Same as in Node.js, you just have to browserify the code before serving it. See the browserify repo for how to do that.

In the Browser through <script> tag

Make the peer-info.min.js available through your server and load it using a normal <script> tag, this will export the peerId constructor on the window object, such that:

var PeerInfo = window.PeerInfo
Gotchas

You will need to use Node.js Buffer API compatible, if you are running inside the browser, you can access it by PeerInfo.Buffer or you can install Feross's Buffer.

Keywords

FAQs

Package last updated on 06 Nov 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc