Skip to content

Commit 5008cdb

Browse files
committed
Document reverse field in API
1 parent 2505677 commit 5008cdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const string = tree('path/to/dir', options);
7676
| `dirsOnly` | `false` | Boolean | List directories only. |
7777
| `exclude` | `[]` | Array | An array of regex to test each filename against. Matching files will be excluded and matching directories will not be traversed into. |
7878
| `maxDepth` | `Number.POSITIVE_INFINITY` | Number | Max display depth of the directory tree. |
79+
| `reverse` | `false` | Boolean | Sort the output in reverse alphabetic order. |
7980
| `trailingSlash` | `false` | Boolean | Appends a trailing slash behind directories. |
8081

8182
```js

0 commit comments

Comments
 (0)