# datland-swarm-defaults

> Dat Defaults for Discovery Swarm

Latest version **1.0.2** (published 2016-07-06) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install datland-swarm-defaults
pnpm add datland-swarm-defaults
yarn add datland-swarm-defaults
bun add datland-swarm-defaults
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-07-06 |
| First published | 2016-03-03 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Joe Hand |
| Maintainers | joeh |

## Links

- npm: https://www.npmjs.com/package/datland-swarm-defaults
- Repository: https://github.com/joehand/datland-swarm-defaults
- Homepage: https://github.com/joehand/datland-swarm-defaults#readme
- Issues: https://github.com/joehand/datland-swarm-defaults/issues
- npm.io page: https://npm.io/package/datland-swarm-defaults

## Dependencies (1)

- [xtend](https://npm.io/package/xtend.md) ^4.0.1

## Recent versions

- 1.0.2 (latest) — 2016-07-06
- 1.0.1 — 2016-07-06
- 1.0.0 — 2016-03-03

## README

# DatLand Swarm Defaults

DatLand Swarm Defaults gives you the Dat defaults for [Discovery-Swarm](https://www.npmjs.com/package/discovery-swarm). This will set your *dns* and *dht* servers making it easy to discover other peers. 


## Usage 

Create a config object and pass it to discovery swarm. 

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

```javascript
var Swarm = require('discovery-swarm')
var swarmDefaults = require('datland-swarm-defaults')

// Create a Hyperdrive here

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

[See a full Dat example](https://gist.github.com/joehand/1e644adc3cc43ae05855)

---
_Source: https://npm.io/package/datland-swarm-defaults · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
