{"name":"libp2p-ipfs-nodejs","version":"0.17.9","description":"The libp2p build (module) used by js-ipfs on Node.js","main":"src/index.js","scripts":{"test":"npm run test:muxer:spdy && npm run test:muxer:multiplex","test:muxer:spdy":"LIBP2P_MUXER=spdy aegir-test node","test:muxer:multiplex":"LIBP2P_MUXER=multiplex aegir-test node","test:muxer:both":"LIBP2P_MUXER=spdy, multiplex aegir-test node","lint":"aegir-lint","release":"aegir-release node","release-minor":"aegir-release node --type minor","release-major":"aegir-release node --type major","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-libp2p-ipfs-nodejs.git"},"pre-commit":["lint","test"],"keywords":["IPFS"],"author":{"name":"David Dias","email":"daviddias@ipfs.io"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-libp2p-ipfs-nodejs/issues"},"engines":{"node":">=4.0.0","npm":">=3.0.0"},"homepage":"https://github.com/ipfs/js-libp2p-ipfs-nodejs#readme","devDependencies":{"aegir":"^9.4.0","async":"^2.1.4","chai":"^3.5.0","pre-commit":"^1.2.2","pull-stream":"^3.5.0"},"dependencies":{"libp2p":"^0.5.1","libp2p-mdns":"^0.6.0","libp2p-multiplex":"^0.3.5","libp2p-railing":"^0.4.0","libp2p-secio":"^0.6.5","libp2p-spdy":"^0.10.3","libp2p-swarm":"^0.26.13","libp2p-tcp":"^0.9.1","libp2p-webrtc-star":"^0.8.3","libp2p-websockets":"^0.9.1","mafmt":"^2.1.6","multiaddr":"^2.2.0","peer-book":"^0.3.0","peer-id":"^0.8.1","peer-info":"^0.8.2"},"contributors":[{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"JGAntunes","email":"j.goncalo.antunes@gmail.com"},{"name":"Prashanth Chandra","email":"coolshanth94@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"Stephen Whitmore","email":"stephen.whitmore@gmail.com"},{"name":"Victor Bjelkholm","email":"victorbjelkholm@gmail.com"},{"name":"greenkeeperio-bot","email":"support@greenkeeper.io"},{"name":"varunagarwal315","email":"varunagarwal315@gmail.com"}],"gitHead":"6d1aefbf0e53bc725086d32533783c8cf743c65f","_id":"libp2p-ipfs-nodejs@0.17.9","_shasum":"b62c0ee7af98bfafad449bae4106020a2e34d5c4","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"daviddias","email":"daviddias.p@gmail.com"},"dist":{"shasum":"b62c0ee7af98bfafad449bae4106020a2e34d5c4","tarball":"http://registry-npm.ywwl.com/libp2p-ipfs-nodejs/download/libp2p-ipfs-nodejs-0.17.9.tgz","integrity":"sha512-+H50BWKdvMAKqVCNQyxaMRXRYmf6NaJ1OSGB0e2L6Me9L5qSRPCMxy23ERQhwyo7l7RzmWZ0ssQEbo2sXBqFQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKB/9hIhO8yJEN6lq0Y5huuyLMXqdQPO5shqEqp8ec8AIhAOqyzuqgpBQ6TE65KNU0Y+2Z066IysHPBKEJ9fD4idsY"}],"size":207241,"noattachment":false,"key":"/libp2p-ipfs-nodejs/-/libp2p-ipfs-nodejs-0.17.9.tgz"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/libp2p-ipfs-nodejs-0.17.9.tgz_1485710554330_0.7947315603960305"},"directories":{},"readme":"libp2p-ipfs-nodejs\n==================\n\n--------------------------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------------------------\n\n# Deprecation Notice\n\nThis module has been deprecated in favour of:\n\n- Consolidating examples for libp2p on js-libp2p\n- Avoid duplication of code\n- Reducing overhead in maintainece. Now the bundles live in js-ipfs itself, see - https://github.com/ipfs/js-ipfs/tree/master/src/core/runtime\n- Now all of the tests live in https://github.com/libp2p/js-libp2p/tree/master/test\n\n--------------------------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------------------------\n\n\n\n![](https://github.com/libp2p/js-libp2p/raw/1e3e9db84d1e5fdd5682cc5e0fdaabfcd07ad55a/img/js-libp2p-ipfs.png?raw=true)\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Build Status](https://travis-ci.org/ipfs/js-libp2p-ipfs-nodejs.svg?style=flat-square)](https://travis-ci.org/ipfs/js-libp2p-ipfs-nodejs)\n[![Coverage Status](https://coveralls.io/repos/github/ipfs/js-libp2p-ipfs-nodejs/badge.svg?branch=master)](https://coveralls.io/github/ipfs/js-libp2p-ipfs-nodejs?branch=master)\n[![Dependency Status](https://david-dm.org/ipfs/js-libp2p-ipfs-nodejs.svg?style=flat-square)](https://david-dm.org/ipfs/js-libp2p-ipfs-nodejs)\n[![js-standard](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square)\n![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square)\n\n> libp2p bundle (module) used in js-ipfs when run in Node.js. If you are looking for the browser version, see [libp2p-ipfs-browser](https://github.com/ipfs/js-libp2p-ipfs-browser)\n\nThis libp2p build has support for:\n\n- TCP and WebSockets\n- SPDY and mplex stream multiplexing\n- secio encrypted channels\n- Identify STUN protocol\n\n## Table of Contents\n\n- [Install](#install)\n  - [npm](#npm)\n  - [Use in Node.js](#use-in-nodejs)\n- [Usage](#usage)\n- [API](#api)\n- [Examples](#examples)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n### npm\n\n```sh\n> npm i libp2p-ipfs-nodejs\n```\n\n### Use in Node.js\n\n```js\nconst Node = require('libp2p-ipfs-nodejs')\n```\n\n## Usage\n\n### Create a libp2p-ipfs-nodejs node\n\n```js\nconst PeerInfo = require('peer-info')\nconst Node = require('libp2p-ipfs-nodejs')\nPeerInfo.create((err, pi) => {\n  if (err) {\n    throw err // handle the err\n  }\n\n  pi.multiaddr.add('/ip4/0.0.0.0/tcp/0')\n\n  const node = new Node(pi)\n  node.start((err) => {\n    if (err) {\n      throw err // handle the err\n    }\n    console.log('Node is ready o/')\n  })\n})\n```\n\n## API\n\nAPI docs can be found at https://github.com/libp2p/js-libp2p#usage\n\n## Contribute\n\nFeel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-libp2p-ipfs/issues)!\n\nThis repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/contributing.md)\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1485710554890,"_cnpm_publish_time":1485710554890,"dist-tags":{"latest":"301.0.0"}}