2d-polygon-self-intersections (npm): This library may not be fast, but it is robust. Robust in the fact that it will find all of the self-intersections in a polygon - minus of course shared endpoints.
Keywords: 2d|polygon|math|intersections|self-intersections|robust