nginx config files parser based on jison

npm install nginx-conf-parser
5 downloads in the last month

nginx configuration file parser

yet another parser written on JS using jison


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; }');
console.log(result); // yo. no async, sorry ;-(
npm loves you