From a20885962fef841f3f42138d2d2c9ed49a8adfac Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 16 Mar 2016 13:20:24 +0100 Subject: [PATCH 1/2] added Buffer and stream.Readable for client.seed Added few missing details from create-torrent --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5aaca164..efcb59f5 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,8 @@ Start seeding a new torrent. - path to the file or folder on filesystem (string) (Node.js only) - W3C [File](https://developer.mozilla.org/en-US/docs/Web/API/File) object (from an `` or drag and drop) - W3C [FileList](https://developer.mozilla.org/en-US/docs/Web/API/FileList) object (basically an array of `File` objects) -- Node [Buffer](https://nodejs.org/api/buffer.html) object (works in [the browser](https://www.npmjs.com/package/buffer)) +- Node [Buffer](https://nodejs.org/api/buffer.html) object (works in [the browser](https://www.npmjs.com/package/buffer)) (must set a `name` property on it) +- Node [stream.Readable](http://nodejs.org/api/stream.html) object (must set `name` and `opt.pieceLength` properties on it) Or, an **array of `string`, `File`, or `Buffer` objects**. From c111c626c0ee0b5b69ea6380cbd0644057526bd5 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 16 Mar 2016 13:22:27 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index efcb59f5..f07850d6 100644 --- a/README.md +++ b/README.md @@ -328,7 +328,7 @@ Start seeding a new torrent. - Node [Buffer](https://nodejs.org/api/buffer.html) object (works in [the browser](https://www.npmjs.com/package/buffer)) (must set a `name` property on it) - Node [stream.Readable](http://nodejs.org/api/stream.html) object (must set `name` and `opt.pieceLength` properties on it) -Or, an **array of `string`, `File`, or `Buffer` objects**. +Or, an **array of `string`, `File`, `Buffer`, or `stream.Readable` objects**. If `opts` is specified, it should contain the following types of options: