SVG + JS

Paths

get path length

document.querySelector('svg path').getTotalLength()