Skip to content

Commit

Permalink
docs: add sort option
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored Nov 9, 2023
1 parent 276c9d3 commit de82e43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ The following parameters can be provided to `filesFromPaths`:
| paths | `Iterable<string>` | File system path(s) to read from |
| [options] | `object` | options |
| [options.hidden] | `boolean` | Include .dot files in matched paths (default: `false`) |
| [options.sort] | `boolean` | Sort files by path (default: `true`) |

It returns an _array_ of file-like objects in the form:

```ts
{
name: String
stream (): ReadableStream<Uint8Array>
name: string
stream: () => ReadableStream<Uint8Array>
size: number
}
```
Expand Down

0 comments on commit de82e43

Please sign in to comment.