
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
An assortment of geolocation related tools, all packaged in one easy to use kit.
Full documentation is available at https://geokit.geofirestore.com.
An assortment of geolocation related tools, all packaged in one easy to use kit.
distance(start: LatLngLiteral, end: LatLngLiteral, unit?: string): numberCalculates the distance, in kilometers, between two coordinates.
start and end must be LatLngLiterals { lat: 0, lng: 0 }.
import * as geokit from 'geokit';
const start = {lat: 41.3083, lng: -72.9279};
const end = {lat: -33.8688, lng: 151.2093};
const distance = geokit.distance(location1, location2); // distance === 16082.811206563834
hash(coordinates: LatLngLiteral, precision?: number): stringGenerates Geohash of coordinates.
coordinates must be LatLngLiterals { lat: 0, lng: 0 }.
import * as geokit from 'geokit';
const coordinates = {lat: 41.3083, lng: -72.9279};
const hash = geokit.hash(coordinates); // hash === 'drk4urzw2c'
decodeHash(hash: string): LatLngLiteralDecodes a Geohash into its Latitude and Longitude as a LatLngLiteral.
import * as geokit from 'geokit';
const hash = 'r3gx2f77b';
const coordinates = geokit.decodeHash(hash); // coordinates === {lat: -33.86881113052368, lng: 151.2093186378479}
validateCoordinates(coordinates: LatLngLiteral): booleanValidates coordinates and returns a boolean if valid, or throws an error if invalid.
coordinates must be LatLngLiterals { lat: 0, lng: 0 }.
import * as geokit from 'geokit';
const coordinates = {lat: 41.3083, lng: -72.9279};
const isValid = geokit.validateCoordinates(coordinates); // true
validateHash(hash: string): LatLngLiteralValidates a Geohash and returns a boolean if valid, or throws an error if invalid.
import * as geokit from 'geokit';
const hash = 'r3gx2f77b';
const isValid = geokit.validateHash(hash); // true
FAQs
An assortment of geolocation related tools, all packaged in one easy to use kit.
The npm package geokit receives a total of 3,598 weekly downloads. As such, geokit popularity was classified as popular.
We found that geokit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.