'How to get area drawed in *dxf and *svg file

I am using NodeJS, but I don't know if there are better tools.

From an Angular client the user can upload a *dxf ora a *svg file. The images in the file display a red and a black figure.
I have to calculate the area (on client or server side) of the black figure and the perimeter of the red one from the file.
The user can also upload a *stl file, and I have to calcualte the Volume of the object in the *stl.

I don't even know where to start or what tools I should use



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source