wp-index
v0.0.6
Published
Folder index page generator for webpan.
Downloads
23
Readme
Overview
Generates an index page of a directory with clickable links.
Usage
- Add it to project
npm i wp-index - Apply it to any directory.
// wrules.json { "processors": { "**/": "wp-index" // applies to all directories }
Behaviour
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.
Options
|Option|Type|Default|Descripiton| |---|---|---|---| |priority|number|0|write priority of the generated file| |excludes|string[]|[index.html]|list of files to exclude|
