A pure JavaScript formatter for NGINX configuration files, version 0.1.8. It indents, splits long directives, and normalizes whitespace. Ships with TypeScript definitions. No runtime dependencies. Unlike nginxbeautifier (Python) or nginx-config-formatter (Java), this is a lightweight Node.js library suitable for CLI or build tool integration. Development appears slow; last update was in 2022. Works in Node.js only (not browser). Supports customizable indentation and maximum line length.
npm install nginx-formatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Reads an NGINX config file, formats it with 2-space indentation, and writes the result.
Ensure comments are placed on separate lines before formatting.
Validate config with nginx -t before formatting.
Evaluate if maintenance status meets your needs.
Use `import { nginxFormat } from 'nginx-format'`Run `npm install nginx-format` and ensure import path is exactly 'nginx-format'.
No dependency data recorded yet.