lurq

npm package

Home

@turf/centroid

@turf/centroid is a utility for calculating the geometric center of a polygon or shape using its vertices. It is useful in geographic applications where determining the central point of a shape is required. This module is part of the Turfjs project, which provides various geographic algorithms.

lurq health score
82/100
Confidence
proven
Weekly downloads
2,735,436
Latest version
7.4.0
Last release
Aug 3, 2026
License
MIT

Should you depend on @turf/centroid?

lurq's verdict: low

  • No known advisories

Check this from your coding agent

This page is a daily snapshot. lurq's verify tool checks @turf/centroid at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:

npx lurqrun

Free to start. Quickstart

Other utility packages lurq scores

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 1, 2026; this page refreshes every 24 hours. Source repository.