With modules:
npm install --save @mllx87/puredocx
First, download the simple.pptx file and place it in the same folder as your JavaScript file.
const Puredocx = require("@mllx87/puredocx");
var puredocx = new Puredocx()
var substitutions = {
"title":"hello",
"summary":"New World",
"staff":30,
"company":"mllx"
};
puredocx.render("simple.pptx",substitutions,"output.pptx")
For more options see:PureDocx