diff --git a/index.js b/index.js index 906cf3b..c22bcde 100755 --- a/index.js +++ b/index.js @@ -1,13 +1,31 @@ #!/usr/bin/env node fs = require('fs'); -var parseFile = function(data){ - console.log(data); + +var parseFile = function(data, callback){ + var previous_line = -1; + var lines = data.split('\n'); + var html = ''; + lines.forEach(function(value, index){ + if(value !== ''){ + var split_value = value.split('\t'); + var num_tabs = split_value.length - 1; + if(num_tabs > previous_line){ + html += "