0.0.1 • Published 9 years ago
kademlia-dht-js v0.0.1
kademlia-dht-js
How to Install
$ npm install kademlia-dht-jsGetting Started
Kademlia has two main concepts:
KademliaNode- has an id and constructors for creating a random nodes and nodes with predefined ids.KademliaRoutingTable- after being initialised the Routing table can be updated with KademliaNodes which will then be allocated in buckets. Node lookups are supported via thefindClosestmethod.
How to Test
Run one, or a combination of the following commands to lint and test your code:
$ npm run lint # Lint the source code with ESLint
$ npm test # Run unit tests with Mocha
$ npm run test:watch # Run unit tests with Mocha, and watch files for changes
$ npm run test:cover # Run unit tests with code coverage by IstanbulLicense
MIT © 2016
0.0.1
9 years ago