simplify-path (npm): simplify 2D polyline
Keywords: polyline|simplify|2d|path|poly|line|douglas|radial|distance|redundant|duplicate|points