nginx-config-man
v0.1.2
Published
a lexer and parser for nginx configuration files
Readme
Introduction
A lexer and parser for nginx configuration files, allowing you to tokenize, parse, and analyze configs with ease. Ideal for automation, validation, and programmatic modifications.
Get Started
npm install nginx-config-man
# or
yarn add nginx-config-manimport { nginx_config_man } from 'nginx-config-man';
const config = `
server {
listen 80;
server_name example.com;
location / {
root /var/www/html;
index index.html;
}
}`;
const directives = nginx_config_man(config);
console.log(directives);Contributing
We love our contributors! Here's how you can contribute:
- Open an issue if you believe you've encountered a bug.
- Make a pull request to add new features/make quality-of-life improvements/fix bugs.
Repo Activity
License
nginx config man is open-source under the MIT License. You can find it here.
