Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Nginx Configuration Files Parser
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
src
tests
.gitignore
.npmignore
Makefile
README.md
package.json

README.md

nginx configuration file parser

yet another parser written on JS using jison

Usage

cd your-project-path
npm install -l nginx-conf-parser

and then just use it:

var nginxParser = require('nginx-conf-parser').parser;
var result = nginxParser.parse('server { server_name .example.host; }');
console.log(result); // yo. no async, sorry ;-(
Something went wrong with that request. Please try again.