main
atlas 0,0 3,4 3,0: the route's length.
import { length, parseRoute } from "#codebase/atlas"; export function main(...args: string[]): number { if (!args.length) { console.error("usage: atlas x,y x,y ..."); return 2; } console.log(length(parseRoute(args)).toFixed(2)); return 0; }