var nodelist = function(nodelistPath){
   if (!(this instanceof nodelist)) return new nodelist(nodelistPath);
};

module.exports = nodelist;
@@ -1,8 +1,33 @@
+var fs = require('fs');%0A%0A
 var node
@@ -127,16 +127,501 @@
 stPath);
+%0A%0A   var nodelistString = fs.readFileSync(nodelistPath, %7B%0A      encoding: 'utf8'%0A   %7D);%0A   if( nodelistString.slice(-1) === '%5Cx1A' )%7B // EOF%0A      nodelistString = nodelistString.slice(-1);%0A   %7D%0A   var nodelistLines = nodelistString.split( /%5Cx0d?%5Cx0a/ );%0A   nodelistString = null;%0A%0A   var currentZone    = null;%0A   var currentRegion  = null;%0A   var currentNet     = null;%0A   var currentHub     = null;%0A   nodelistLines.forEach(function(line)%7B%0A      var fields = line.split(',');%0A   %7D);
 %0A%7D;%0A%0Amod

split a string to lines, split a line to fields