Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Generates an index page of a directory with clickable links.

Usage

  1. Add it to project
    npm i wp-index
  2. 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages