You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to providing the directory listing flag, this swaps the underlying HTTP server from `serve-static` to `serve-handler`. There should be no user facing changes for that swap.
Path to the config file to use. Looks for `linkinator.config.json` by default.
47
47
48
+
--directory-listing
49
+
Include an automatic directory index file when linking to a directory.
50
+
Defaults to 'false'.
51
+
48
52
--format, -f
49
53
Return the data in CSV or JSON format.
50
54
@@ -138,6 +142,7 @@ All options are optional. It should look like this:
138
142
"concurrency": 100,
139
143
"timeout": 0,
140
144
"markdown": true,
145
+
"directoryListing": true,
141
146
"skip": "www.googleapis.com"
142
147
}
143
148
```
@@ -161,6 +166,7 @@ where the server is started. Defaults to the path passed in `path`.
161
166
-`timeout` (number) - By default, requests made by linkinator do not time out (or follow the settings of the OS). This option (in milliseconds) will fail requests after the configured amount of time.
162
167
-`markdown` (boolean) - Automatically parse and scan markdown if scanning from a location on disk.
163
168
-`linksToSkip` (array | function) - An array of regular expression strings that should be skipped, OR an async function that's called for each link with the link URL as its only argument. Return a Promise that resolves to `true` to skip the link or `false` to check it.
169
+
-`directoryListing` (boolean) - Automatically serve a static file listing page when serving a directory. Defaults to `false`.
164
170
165
171
#### linkinator.LinkChecker()
166
172
Constructor method that can be used to create a new `LinkChecker` instance. This is particularly useful if you want to receive events as the crawler crawls. Exposes the following events:
0 commit comments