Skip to content

Allows you to create a static HTML page from a folder

Notifications You must be signed in to change notification settings

artmizu/folder-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate static HTML overview of folder

Allows you to create a static HTML page from a folder.

Folder:

alt text

Output HTML:

alt text

If you send along with other files to a remote server and then open folder overview through a browser, you can see which files are on the server. I use it with Surge.

You can use script in Gulp task

directoryOverview = require('folder-to-html');

gulp.task('overview', function() {
  directoryOverview({
    exclude: [
      /\.git/,
      /node_modules/
    ]
  });
});

Options

You can pass options to function:

directoryOverview({ opts });

Available

  • folder (String) path to folder. Default value is ./;
  • extensions (RegExp|RegExp[]) A RegExp or an array of RegExp to test for exlusion of directories;
  • exclude (RegExp) A RegExp to test for exclusion of files with the matching extension;
  • fileName (String) output HTML file name;

About

Allows you to create a static HTML page from a folder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published