broccoli-fileindex

Outputs an HTML file that list links to other HTML pages

Usage no npm install needed!

<script type="module">
  import broccoliFileindex from 'https://cdn.skypack.dev/broccoli-fileindex';
</script>

README

Broccoli-fileindex

Build Status

Outputs a HTML file that list links to other HTML pages

There is also a version for Gulp

CHANGELOG

INSTALL

$ npm install broccoli-fileindex

USAGE

var fileindex = require('broccoli-fileindex');

var tree = fileindex(html, {
  files: ['**/*.html'],
  dest: 'index.html'
});

OPTIONS

fileindex(tree, options)

options.files

Type: Array
Required

This option is the glob of the pages you want to generate the links.

options.dest

Type: String
Optional
Default index.html

Path to the HTML page to generate.

options.showOnlyFilenames

Type: Boolean
Optional
Default false

Whether ot not to show only the filenames in the HTML listing page

CONTRIBUTE

$ npm run test

LICENSE

MIT