{"id":17958256,"url":"https://github.com/chrismckee/gofmtnginx","last_synced_at":"2025-07-24T06:39:21.604Z","repository":{"id":207557593,"uuid":"627540833","full_name":"ChrisMcKee/gofmtnginx","owner":"ChrisMcKee","description":"Go Format Nginx Config","archived":false,"fork":false,"pushed_at":"2024-01-01T19:01:35.000Z","size":29,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T06:24:37.859Z","etag":null,"topics":["nginx","nginx-configuration","nginx-formatter","nginxformatter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChrisMcKee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-13T17:20:19.000Z","updated_at":"2025-01-18T18:40:27.000Z","dependencies_parsed_at":"2024-10-29T11:21:29.520Z","dependency_job_id":null,"html_url":"https://github.com/ChrisMcKee/gofmtnginx","commit_stats":null,"previous_names":["chrismckee/gofmtnginx"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisMcKee%2Fgofmtnginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisMcKee%2Fgofmtnginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisMcKee%2Fgofmtnginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisMcKee%2Fgofmtnginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChrisMcKee","download_url":"https://codeload.github.com/ChrisMcKee/gofmtnginx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247052019,"owners_count":20875677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nginx","nginx-configuration","nginx-formatter","nginxformatter"],"created_at":"2024-10-29T10:59:12.304Z","updated_at":"2025-07-24T06:39:21.587Z","avatar_url":"https://github.com/ChrisMcKee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Format nginx Config\n\nA powerful and flexible nginx configuration formatter that recursively processes nginx configuration files in a directory structure.\nThis tool helps maintain consistent formatting across your nginx configuration files.\n\n## Features\n\n- Recursively processes nginx configuration files in a directory\n- Configurable indentation\n- Optional comment removal\n- Concurrent file processing for better performance\n- Automatic backup creation before modifications\n- Dry-run mode for previewing changes\n- Customisable file extensions\n- Detailed statistics and logging\n\n## Installation\n\n```bash\ngo install github.com/ChrisMcKee/gofmtnginx@latest\n```\n\n## Usage\n\n```bash\ngofmtnginx [flags] \u003cdirectory\u003e\n```\n\n### Flags\n\n- `--removecomments`: Remove comments from the configuration file (default: false)\n- `--indent`: Number of spaces for indentation (default: 2)\n- `--dry-run`: Show what would be done without making changes (default: false)\n- `--verbose`: Enable verbose logging (default: false)\n- `--backup`: Create backup files before modifying (default: false)\n- `--concurrent`: Process files concurrently (default: true)\n- `--workers`: Number of concurrent workers (default: 4)\n- `--extensions`: Comma-separated list of file extensions to process (default: \".conf,.proxy\")\n- `--preserve-newlines`: Preserve existing newlines between blocks (default: false)\n\n### Examples\n\nFormat all nginx configuration files in a directory:\n```bash\ngofmtnginx /etc/nginx\n```\n\nFormat only .conf files with 4-space indentation:\n```bash\ngofmtnginx --indent=4 --extensions=.conf /etc/nginx\n```\n\nPreview changes without modifying files:\n```bash\ngofmtnginx --dry-run /etc/nginx\n```\n\nRemove comments and process specific file types:\n```bash\ngofmtnginx --removecomments --extensions=.conf,.nginx /etc/nginx\n```\n\n## Output\n\nThe tool provides statistics about the formatting process:\n- Number of files processed\n- Number of files skipped\n- Number of files failed\n- Total processing time\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrismckee%2Fgofmtnginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrismckee%2Fgofmtnginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrismckee%2Fgofmtnginx/lists"}