mkdom converts plain HTML into DOM elements that can be manipulated in browsers and on the server. It makes writing shared rendering logic fairly easy.
npm install mkdom
var fs =var mkdom =var html = fsvar page =pagetextContent = 'mkdom'pagetextContent = 'mkdom converts pl…'processstdout
You can also take a look at a more real world example, mkdom-todos.