File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ node-static understands and supports *conditional GET* and *HEAD* requests.
6
6
node-static was inspired by some of the other static-file serving modules out
7
7
there, such as node-paperboy and antinode.
8
8
9
- # Synopsis
9
+ ## Installation
10
+
11
+ ``` sh
12
+ $ npm install node-static
13
+ ```
14
+
15
+ ## Synopsis
10
16
11
17
``` js
12
18
const statik = require (' node-static' );
@@ -26,8 +32,7 @@ require('http').createServer(function (request, response) {
26
32
}).listen (8080 );
27
33
```
28
34
29
- API
30
- ---
35
+ ## API
31
36
32
37
### Creating a node-static Server
33
38
@@ -217,8 +222,7 @@ example: `{ defaultExtension: "html" }`
217
222
> Defaults to ` null `
218
223
219
224
220
- Command Line Interface
221
- ----------------------
225
+ ## Command Line Interface
222
226
223
227
` node-static ` also provides a CLI.
224
228
You can’t perform that action at this time.
0 commit comments