d3-path
Serialize Canvas path commands to SVG.
path2d
Path2D API for node. Can be used for server-side rendering with canvas
modern-path2d
A modern Path2D library, fully compatible with Web Path2D, with additional support for path animation, path deformation, path playback, etc.