@turf/centroid

npmv7.3.5

Determines the geometric center of a polygon or shape.

License MITpermissive68 versions9 maintainers4 deps2,596,053 weekly dl
git://github.com/Turfjs/turf
95
/ 100
Health
safe to use

@turf/[email protected] is safe to use (health: 95/100)

Health breakdown0 – 100
25/25
maintenance
17/20
popularity
25/25
security
15/15
maturity
13/15
community
Vulnerabilities
0
none known

Bundle & TypeScript

📦

Bundle Size

1.9 KBminified
0.9 KB gzipped
4 direct dependencies
ESMscoped
🌟

TypeScript

10/10typed
bundled

Health History

Dependency Tree

License Audit

API access

Get this data programmatically — free, no authentication.

curl https://depscope.dev/api/check/npm/@turf/centroid

First published · 2016-07-06T15:57:47.284Z

Last updated · 2026-04-19T12:06:09.821Z