Using Node.js w/ Cheerio to pre-process HTML

I have the unfortunate task of converting a significant amount of HTML pages over to a new template. I will need to port the and place it into the new template's , plus some additional DOM manipulation. Unfortunately, these need to be hosted as static HTML pages.

I'm wondering if Node.js with Cheerio running jQuery would be appropriate or is there another method that I should consider.

cheerio works pretty well for most use cases. jsdom might be needed for some more complex ones, but it has significantly worse performance so only use it if cheerio doesn't work.