@turf/envelope

Takes any number of features and returns a rectangular Polygon that encompasses all vertices.

Browse on unpkg