Socket
Socket
Sign inDemoInstall

dat-swarm-defaults

Package Overview
Dependencies
0
Maintainers
11
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dat-swarm-defaults

Dat Defaults for Discovery Swarm


Version published
Weekly downloads
171
increased by222.64%
Maintainers
11
Install size
5.54 kB
Created
Weekly downloads
 

Readme

Source

deprecated

More info on active projects and modules at dat-ecosystem.org


Dat Swarm Defaults

npm travis standard

Use Dat defaults for dns and dht servers in hyperdiscovery or discovery-swarm. The dns and dht servers are used to discover other peers.

Using Other Discovery Servers

Run discovery servers with dns-discovery or a bittorrent-dht server (such as https://github.com/hyperswarm/dht).

Usage

Create a config object and pass it to discovery swarm.

Any options you specify will overwrite the defaults. See discovery swarm for options.

var Swarm = require('discovery-swarm')
var defaults = require('dat-swarm-defaults')

var config = defaults({
  stream: function () {
    return drive.createPeerStream()
  }
})
var swarm = Swarm(config)

License

MIT

Keywords

FAQs

Last updated on 06 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc