HtmlSaveOptions.imagesFolder property. Specifies the physical folder where images are saved when exporting a document to HTML format... rmSync ( imagesDir , { recursive : true , force : true });...mkdirSync ( imagesDir , { recursive : true }); // Set an option...