apacheconf
Advanced tools
Comparing version 0.0.1 to 0.0.2
14
index.js
@@ -8,4 +8,2 @@ var inherits = require('util').inherits | ||
var colors = require('colors') | ||
function removeQuotes(str) { | ||
@@ -122,14 +120,4 @@ if ((str[0] == '"' && str[str.length - 1] == '"') || (str[0] == "'" && str[str.length - 1] == "'")) | ||
child.name = line.split(' ', 1)[0] | ||
child.args = removeQuotes(line.slice(child.name.length + 1)) | ||
child.config.$args = removeQuotes(line.slice(child.name.length + 1)) | ||
switch(child.name) { | ||
case 'VirtualHost': | ||
line = child.args.split(':') | ||
child.host = line[0] | ||
child.port = line[1] | ||
break | ||
// TODO: Handle more types | ||
} | ||
break | ||
@@ -136,0 +124,0 @@ |
{ | ||
"name": "apacheconf", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Apacheconf is an apache config file parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5782
178