diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-03-16 23:48:58 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-03-16 23:51:15 +0300 |
commit | 566c888f18426bdd1ce28cbdd70ec45e746627bd (patch) | |
tree | 52c82baed3b745b4ed5fd906edb71ab528c1b938 /docs | |
parent | a5f4096741818767d8801bb787530855db3f2622 (diff) |
docs formatting
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api.md b/docs/api.md index dc78bff..b510b2e 100644 --- a/docs/api.md +++ b/docs/api.md @@ -21,7 +21,7 @@ Create a new `WebTorrent` instance. If `opts` is specified, then the default options (shown below) will be overridden. -```json +```js { dht: Boolean|Object, // Enable DHT (default=true), or options object for DHT maxConns: Number, // Max number of connections per torrent (default=55) @@ -48,7 +48,7 @@ Start downloading a new torrent. Aliased as `client.download`. If `opts` is specified, then the default options (shown below) will be overridden. -```json +```js { announce: [], // Torrent trackers to use (added to list in .torrent or magnet uri) getAnnounceOpts: function, // Custom callback to allow sending extra parameters to the tracker @@ -337,7 +337,7 @@ swarm first. You can pass `opts` to stream only a slice of a file. -```json +```js { start: startByte, end: endByte |