@anatoliy-stepanchenko/geodistance-calculator

It is a simple npm package that allows you to calculate the approximate distance between two geographic coordinates (latitude and longitude) on Earth

geo-tools

Tools to help geocode, reverse geocode, and calculate location distances

@mmankos/geodistance

Lightweight, zero-dependency, ES module utility for calculating the great-circle distance between two latitude/longitude coordinates, in kilometers, using the Haversine formula.