{"repo":"slomkowski/nginx-config-formatter","free":true,"listed":false,"github":"https://github.com/slomkowski/nginx-config-formatter","clone":"git clone https://github.com/slomkowski/nginx-config-formatter.git","description":"nginx config file formatter/beautifier written in Python with no additional dependencies.","language":"Python","stars":424,"topics":["nginx","formatter","nginx-configuration","formatting","beautifier"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"nginx config file formatter/beautifier nginx config file formatter/beautifier written in Python with no additional dependencies. It can be used as a library or a standalone script. It formats nginx configuration files in a consistent way, described below: All lines are indented uniformly, with four spaces per level. The number of spaces is customizable. Neighboring empty lines are collapsed to at most two. The number is customizable (see options below). Curly brace placement follows the Java convention. Whitespace is collapsed, except in comments and within quotation marks. Newline characters are normalized to the operating system default (LF or CRLF), but this can be overridden. Installation Python 3.4 or later is needed to run this program. The easiest way is to download the package from PyPI: Manual installation The simplest form of installation is copying nginxfmt.py to your scripts' directory. It has no third-party dependencies. You can also clone the repository and symlink the executable: Usage as standalone script It can format one or several files. By default, the result is saved to the original file, but it can be redirected to stdout . It can also function in piping mode, using the --pipe or - switch. Using as a library The main logic is within the Formatter class, which can be used in third-party code. Customizing formatting options: Reporting bugs Please create an issue at https://github.com/slomkowski/nginx-config-formatter/issues. Be sure to include config snipp","default_branch":null,"files":null,"tree":[],"storefront":"/r/slomkowski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/slomkowski/nginx-config-formatter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}