Generates an index page of a directory with clickable links.
- Add it to project
npm i wp-index
- Apply it to any directory.
Output location: index.html of the directory.
The index will include links to:
- All files in the directory.
- All subdirectories in the directory containing an index.html, this ensures all links in the index page links to an existing file.
| Option | Type | Default | Descripiton |
|---|---|---|---|
| priority | number | 0 | write priority of the generated file |
| excludes | string[] | [index.html] | list of files to exclude |