An implementation of Kademlia-based DHT protocol with abstract networking.
Node >=8.9.0
is required.
npm install --save abstract-dht
To perform tests use:
cd node_modules/abstract-dht
npm i
npm t
The source is documented with JSDoc. To generate the documentation use:
npm run docs
Extra debugging information is printed using the debug
module:
DEBUG=abstract-dht:* npm t
The documentation will be put in the new docs
directory.
To introduce an improvement please fork this project, commit changes in a new branch to your fork and add a pull request on this repository pointing at your fork. Please follow these style recommendations when working on the code:
- Use tabs (yup).
- Use
async
/await
and/orPromise
where possible. - Features must be properly tested.
- New methods must be properly documented with
jscode
style comments.