Hi @dirka,
So that you or anyone else interested can try to get them to work, below are two links to p5.js sketches that use the p5.svg.js library, and attempt to export .svg files. Both are offered in the p5.js online editor.
The first one does export what should be an .svg file, but I cannot display it as an image, and believe it is corrupted:
The second one results in the following error message:
ReferenceError: SVG is not defined
at /sketch.js:9:26
I am using Chrome on a MacBook Air.
If anyone is able to get either one to work, please let us know, and specify what operating system and browser you are using.