A very fast JavaScript polyline and polygon clipping library
mapbox/lineclip has 183 GitHub stars.
It currently ranks #11733 daily, #12788 weekly, #16271 monthly by momentum on Trending Repos; its best-ever rank is #4938.