Skip to content

LukeCarrier/drawio-export-puppeteer

Repository files navigation

Draw.io exports via Puppeteer

Node module for exporting Draw.io diagrams to a range of formats using Puppeteer, designed as a drop-in replacement for the Draw.io desktop CLI.


Hacking

We use asdf-vm with the nodejs plugin to manage our tool versions. Complete the setup for asdf-vm first, or make sure you have compatible equivalents installed.

After cloning, make sure you get the vendored dependencies:

git submodule update --init

Testing

Tests are written in Jest. To run them:

npm test

Add the --watch parameter to re-run the tests when changes are detected:

npm test --watch