HAProxy JSON
Usage and CLI options
Usage: index [options] -f file [-f file]*
Options:
-V, --version output the version number
-f, --file <file> Input file
-o, --output [output] Output file (default: haproxy.cfg)
--tab-size [tab-size] Tab size. Only applies if indented with (default: 2)
-t, --tab [tab] Flag to indent with tabs (default: false)
-h, --help output usage information
Example
sample.json
{
"global": {
"chroot": "/var/lib/haproxy1",
"user": "haproxy",
"group": "haproxy"
},
"defaults": {
"mode": "http"
}
}sample2.json
{
"global": {
"chroot": "/var/lib/haproxy2",
"user": "haproxy",
"group": "haproxy"
},
"defaults": {
"retries": 3
}
}When run with node index.js -f sample.json -f sample2.json --tab-size 8 outputs:
global
chroot /var/lib/haproxy2
user haproxy
group haproxy
defaults
mode http
defaults
retries 3

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
