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
import { getDirectives, Format } from'@nginx/reference-lib'
27
-
constdirective=getDirectives(Format.HTML)
28
-
```
2
+
3
+
Machine-readable NGINX directive documentation, with Markdown and HTML formats.
4
+
5
+
This library is generated from the official NGINX documentation, and intended for use in other tools that work with NGINX configuration files. This provides more accurate and up-to-date information than web scraping <https://nginx.org>.
6
+
7
+
Every time the NGINX documentation changes, this library will be updated and published with a new version number.
8
+
9
+
## Installation
10
+
11
+
`npm install --save @nginx/reference-lib`
12
+
13
+
## Usage
14
+
15
+
We export two functions (with type definitions) to navigate the documentation:
16
+
17
+
1.`getDirectives` returns a flat list of all directives in any official module
0 commit comments