How can I convert the outline of an imported SVG pen drawing into a single curve?

I found an amazing website that converts drawings into SVGs, but has a ‘centreline’ function that creates a single vector curve out of a thick outline. Just made this…

I think you might like it: