1connect / Nginx Config Formatter
Licence: apache-2.0
nginx config file formatter/beautifier written in Python.
Stars: ✭ 222
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Nginx Config Formatter
kirai
String formatting library for Java, Android, Web and Unix Terminal
Stars: ✭ 69 (-68.92%)
Mutual labels: formatter, formatting
Latexindent.pl
Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.
Stars: ✭ 415 (+86.94%)
Mutual labels: beautifier, formatter
dockerfile-utils
A library and command line interface for formatting and linting Dockerfiles.
Stars: ✭ 17 (-92.34%)
Mutual labels: formatter, formatting
Powershell Beautifier
A whitespace reformatter and code cleaner for Windows PowerShell and PowerShell Core
Stars: ✭ 213 (-4.05%)
Mutual labels: beautifier, formatter
teks
Easily get custom go template based outputs to your command-line tool. Like in docker/kubernetes
Stars: ✭ 41 (-81.53%)
Mutual labels: formatter, formatting
Vse Formatdocumentonsave
Visual Studio - Format Document on Save
Stars: ✭ 61 (-72.52%)
Mutual labels: formatter, formatting
Golite
Add essential language support for the Go language to Sublime Text 3.
Stars: ✭ 14 (-93.69%)
Mutual labels: formatter, formatting
Juliaformatter.jl
An opinionated code formatter for Julia. Plot twist - the opinion is your own.
Stars: ✭ 217 (-2.25%)
Mutual labels: formatter, formatting
Atom Beautify
📣 Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | 💄 Universal beautification package for Atom editor (⚠️ Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding ❤️ )
Stars: ✭ 1,501 (+576.13%)
Mutual labels: beautifier, formatter
AutoFormatInputWatcher
This repository contains input watcher for auto formatting digits in edit text
Stars: ✭ 15 (-93.24%)
Mutual labels: formatter, formatting
ufmt
Safe, atomic formatting with black and µsort
Stars: ✭ 46 (-79.28%)
Mutual labels: formatter, formatting
unicode-formatter
Convert portions of text to fancy text using unicode fonts for use on Twitter and other sites that don't support rich text
Stars: ✭ 31 (-86.04%)
Mutual labels: formatter, formatting
Unibeautify
One Beautifier to rule them all, One Beautifier to clean them, One Beautifier to bring them all and in the darkness sheen them
Stars: ✭ 466 (+109.91%)
Mutual labels: beautifier, formatter
laravel-formatters
«Formatter» pattern for Laravel
Stars: ✭ 86 (-61.26%)
Mutual labels: formatter, formatting
vscode-liquid
💧Liquid language support for VS Code
Stars: ✭ 137 (-38.29%)
Mutual labels: formatter, beautifier
Editorconfig Netbeans
A NetBeans IDE plugin supporting the EditorConfig standard. ⛺
Stars: ✭ 123 (-44.59%)
Mutual labels: formatter, formatting
nginx config file formatter
This Python script formats nginx configuration files in consistent way, described below:
- all lines are indented in uniform manner, with 4 spaces per level
- neighbouring empty lines are collapsed to at most two empty lines
- curly braces placement follows Java convention
- whitespaces are collapsed, except in comments an quotation marks
- whitespaces in variable designators are removed:
${ my_variable }
is collapsed to${my_variable}
Installation
Python 3.2 or later is needed to run this program. The simplest form
of installation would be copying nginxfmt.py
to your scripts directory.
You can also clone the repository and symlink the executable:
cd
git clone https://github.com/1connect/nginx-config-formatter.git
ln -s ~/nginx-config-formatter/nginxfmt.py ~/bin/nginxfmt.py
Usage
usage: nginxfmt.py [-h] [-v] [-b] config_files [config_files ...]
Script formats nginx configuration file.
positional arguments:
config_files configuration files to format
optional arguments:
-h, --help show this help message and exit
-v, --verbose show formatted file names
-b, --backup-original
backup original config file
Credits
Copyright 2016 Michał Słomkowski @ 1CONNECT. License: Apache 2.0.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].