-
Notifications
You must be signed in to change notification settings - Fork 16
/
serve-index.express.txt
19 lines (15 loc) · 1.86 KB
/
serve-index.express.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SERVE-INDEX
VERSION ==> #Node module (1.8.0)
#Makes request to DIR render a directory browsing page for 'PATH/DIR':
# - with search bar
# - no cache headers
# - content negotiation (Accept [C]): can serve as HTML, JSON or text/plain
SERVE-INDEX('PATH'[, OBJ]) #Express MIDWR
#OBJ:
# - hidden BOOL (def: false): show dotfiles
# - view STR: "tiles" (def) or "details"
# - icons BOOL (def: false)
# - filter FUNC('FILENAME', NUM, 'FILENAME'_ARR, 'DIR')->BOOL: hide some files
# - template|stylesheet 'PATH': change default HTML|CSS rendered file