Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

directory

  • Loading branch information...
commit a8708f3a6be3845d84900d8dd55b30841d236889 1 parent 92da48c
@tj tj authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 en/api/mw-directory.jade
View
22 en/api/mw-directory.jade
@@ -0,0 +1,22 @@
+
+section
+ h3(id='directory') directory()
+
+ p.
+ Directory serving middleware, serves the given <code>path</code>.
+ This middleware may be paired with <code>static()</code> to serve
+ files, providing a full-featured file browser.
+
+ +js.
+ app.use(express.directory('public'))
+ app.use(express.static('public'))
+
+ p.
+ This middleware accepts the following options:
+
+ <ul>
+ <li><code>hidden</code> display hidden (dot) files. Defaults to false.</li>
+ <li><code>icons</code> display icons. Defaults to false.</li>
+ <li><code>filter</code> Apply this filter function to files. Defaults to false.</li>
+ </ul>
+
Please sign in to comment.
Something went wrong with that request. Please try again.