libp2p-ipfs-nodejs

The libp2p build (module) used by js-ipfs on Node.js

This bundle has been deprecated, consult github.com/libp2p/js-libp2p
Last updated 9 years ago by daviddias .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install libp2p-ipfs-nodejs 
SYNC missed versions from official npm registry.

libp2p-ipfs-nodejs



Deprecation Notice

This module has been deprecated in favour of:



Build Status Coverage Status Dependency Status js-standard standard-readme

libp2p bundle (module) used in js-ipfs when run in Node.js. If you are looking for the browser version, see libp2p-ipfs-browser

This libp2p build has support for:

  • TCP and WebSockets
  • SPDY and mplex stream multiplexing
  • secio encrypted channels
  • Identify STUN protocol

Table of Contents

Install

npm

> npm i libp2p-ipfs-nodejs

Use in Node.js

const Node = require('libp2p-ipfs-nodejs')

Usage

Create a libp2p-ipfs-nodejs node

const PeerInfo = require('peer-info')
const Node = require('libp2p-ipfs-nodejs')
PeerInfo.create((err, pi) => {
  if (err) {
    throw err // handle the err
  }

  pi.multiaddr.add('/ip4/0.0.0.0/tcp/0')

  const node = new Node(pi)
  node.start((err) => {
    if (err) {
      throw err // handle the err
    }
    console.log('Node is ready o/')
  })
})

API

API docs can be found at https://github.com/libp2p/js-libp2p#usage

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

License

MIT

Current Tags

  • 301.0.0                                ...           latest (9 years ago)

29 Versions

  • 301.0.0 [deprecated]           ...           9 years ago
  • 0.26.0                                ...           9 years ago
  • 0.25.2                                ...           9 years ago
  • 0.25.1                                ...           9 years ago
  • 0.25.0                                ...           9 years ago
  • 0.24.0                                ...           9 years ago
  • 0.23.0                                ...           9 years ago
  • 0.22.0                                ...           9 years ago
  • 0.21.1                                ...           9 years ago
  • 0.21.0                                ...           9 years ago
  • 0.20.1                                ...           9 years ago
  • 0.20.0                                ...           9 years ago
  • 0.19.0                                ...           9 years ago
  • 0.18.2                                ...           9 years ago
  • 0.18.1                                ...           9 years ago
  • 0.18.0                                ...           9 years ago
  • 0.17.10                                ...           9 years ago
  • 0.17.9                                ...           9 years ago
  • 0.17.8                                ...           9 years ago
  • 0.17.7                                ...           9 years ago
  • 0.17.6                                ...           9 years ago
  • 0.17.4                                ...           9 years ago
  • 0.17.3                                ...           9 years ago
  • 0.17.2                                ...           9 years ago
  • 0.17.1                                ...           9 years ago
  • 0.17.0                                ...           9 years ago
  • 0.16.4                                ...           9 years ago
  • 0.16.1                                ...           9 years ago
  • 0.16.0                                ...           9 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (16)
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |