const fs = require('fs'); const childProcess = require('child_process'); const resumeHtml = fs.readFileSync('../resume.html').toString(); const resumeCss = fs.readFileSync('./resume_dl.css').toString(); function getRidofTagsBetween(start, end, html) { let si = newHtml.indexOf(start); let ei = newHtml.indexOf(end, si) + end.length; return html.substring(0, si) + newHtml.substring(ei); } const newHeader = `
` const startHead = resumeHtml.indexOf(''); const endHead = resumeHtml.indexOf('') + ''.length; let newHtml = resumeHtml.substring(0, startHead) + newHeader + resumeHtml.substring(endHead); newHtml = getRidofTagsBetween('