@reductoai/pptx/node. It gives a PowerPointPresentation that reads and writes files and renders with the fonts on the machine.
Open, edit, save
save always needs a path. The facade never writes over the input file by itself.
Setting TextRange.text keeps the formatting of the first replaced character, as Microsoft PowerPoint does.
Create a new deck
deck.slides.add({ layoutId: deck.slideMasters.getItemAt(0).getLayoutByName("Blank").id }). See Blank decks.