{"name":"libp2p-ipfs-nodejs","version":"0.24.0","description":"The libp2p build (module) used by js-ipfs on Node.js","main":"src/index.js","scripts":{"test":"npm run test:muxer:both","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":"^11.0.1","async":"^2.3.0","chai":"^3.5.0","cids":"^0.5.0","dirty-chai":"^1.2.2","lodash.times":"^4.3.2","pre-commit":"^1.2.2","pull-stream":"^3.5.0"},"dependencies":{"libp2p":"~0.9.0","libp2p-kad-dht":"~0.1.0","libp2p-mdns":"~0.7.0","libp2p-multiplex":"~0.4.3","libp2p-railing":"~0.5.0","libp2p-secio":"~0.6.8","libp2p-spdy":"~0.10.6","libp2p-swarm":"~0.29.1","libp2p-tcp":"~0.10.0","libp2p-webrtc-star":"~0.9.0","libp2p-websockets":"~0.10.0","mafmt":"^2.1.8","multiaddr":"^2.3.0","peer-book":"~0.4.0","peer-id":"~0.8.7","peer-info":"~0.9.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":"kumavis","email":"kumavis@users.noreply.github.com"},{"name":"varunagarwal315","email":"varunagarwal315@gmail.com"}],"gitHead":"5ccd8f9cc0c874bfc2cbe7019d3a5e91a82a66cc","_id":"libp2p-ipfs-nodejs@0.24.0","_shasum":"6332312d115a6a0e20ef6cf8d8f1bb2917defb1f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"daviddias","email":"daviddias.p@gmail.com"},"dist":{"shasum":"6332312d115a6a0e20ef6cf8d8f1bb2917defb1f","tarball":"http://registry-npm.ywwl.com/libp2p-ipfs-nodejs/download/libp2p-ipfs-nodejs-0.24.0.tgz","integrity":"sha512-UP6Tw4h4t/Z5Lyy5em8dPtu2q938cpzVLZxQXdtBDpwam48JIsVz2CLOAqaUBQOuk2im1UoTVRSrX8tRFzp1lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRnCpPzI/c4hYDk5FfMsataJ6r7FObERI9gg1eniAF/QIgW7SO4T+ZD2barmFdLb+3wPjHav84K/C6TEceZxNu/OQ="}],"size":207681,"noattachment":false,"key":"/libp2p-ipfs-nodejs/-/libp2p-ipfs-nodejs-0.24.0.tgz"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/libp2p-ipfs-nodejs-0.24.0.tgz_1491570894433_0.2152507002465427"},"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":1491570895032,"_cnpm_publish_time":1491570895032,"dist-tags":{"latest":"301.0.0"}}