polyline-clean (npm): Clean polygon or polyline coordinates: remove duplicates, collinear or degenerate segments, holes, trim etc.
Keywords: polygon|polygon-clean|polyline-clean|clean|convex|2d|polyline|poly|path|duplicate|collinear