Skip to content

Location Utils

Terminal window
pnpm add @theholocron/location-utils
import { location } from "@theholocron/location-utils";
const coords = await location.getCurrent();
console.log(coords.latitude, coords.longitude);

This package uses browser-only APIs (navigator.geolocation, navigator.permissions). It will not work in Node.js environments.

The full API reference is generated from the package’s TSDoc comments.