From ee86ce94c5fb810eeddd5bc7179f9f154ae96dc1 Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Thu, 10 May 2018 10:54:49 +0100 Subject: [PATCH] Remove options from `tree()` The `level` option of `tree()` is a premature optimization which wasn't even implemented by many formats. To keep the API surface small, remove that option. Now no option is left, hence the whole `options` argument can be removed. --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 477fef9..4832f2b 100644 --- a/README.md +++ b/README.md @@ -114,13 +114,10 @@ If `path` is the root `/`, the result is a nested object that contains all paths Numbers within a path are interpreted as an array. -#### `resolver.tree(binaryBlob[, options], callback)` +#### `resolver.tree(binaryBlob, callback)` > returns all the paths available in this block. -Options include: - - level: 0 to n - how many levels deep should the traversal go. - `callback` must have the signature `function (err, result)`, where `err` is an Error if the function fails and `result` is a list of path such as `["/foo", "/bar", "/author/name", ...]`. ### Properties