2023-12-16 15:23:25 -03:00
2023-12-16 15:23:25 -03:00
2023-05-10 13:17:16 -03:00
2023-02-15 22:14:44 -03:00
2023-05-10 13:17:16 -03:00
2023-12-16 15:23:25 -03:00
2023-12-16 15:23:25 -03:00
2023-12-16 15:23:25 -03:00

apindex - static file index generator/load reducer

Generate a file index for Github Pages

What is this?

This is a program that generates index.html files in each directory on your server that render the file tree. This is useful for static web servers that need support for file listing. One example of this is Github Pages.

It can also be used to reduce the server load for servers that serve static content, as the server does not need to generate the index each time it is accessed. Basically permanent cache.

The file icons are also embedded into the index.html file so there is no need for aditional HTTP requests.

How do I use it?

Install with npm i -g index-pages and run apindex to current folder, apindex ./folder or apindex /.

else if run with npx: npx index-pages ./

Description
Create "index.html" to static pages, fork from https://github.com/libthinkpad/apindex
Readme 75 KiB
Languages
TypeScript 68.6%
HTML 10.4%
JavaScript 10.3%
Dockerfile 7.9%
CSS 2.8%