express-autoindex
Version:
express-autoindex produce a directory listing like Nginx, Apache or another, but just with express
11 lines • 544 B
TypeScript
import type { Request, Response, NextFunction } from 'express';
import type { autoIndexOptions } from './interface';
/**
* `express-autoindex` middleware reproduces a directory listing like Nginx, Apache, etc...
*
* @param {string} root path to the public directory
* @param {autoIndexOptions | undefined} options middleware options
*/
declare const _default: (root: string, options?: autoIndexOptions | undefined) => ((req: Request, res: Response, next: NextFunction) => void);
export default _default;
//# sourceMappingURL=index.d.ts.map