
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
@turf/point-on-surface
Advanced tools
Takes a feature and returns a Point guaranteed to be on the surface of the feature.
Parameters
fc
(Feature | FeatureCollection) any feature or set of featuresExamples
// create a random polygon
var polygon = turf.random('polygon');
var pointOnPolygon = turf.pointOnSurface(polygon);
//addToMap
var addToMap = [polygon, pointOnPolygon];
Returns Feature a point on the surface of input
This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.
Install this module individually:
$ npm install @turf/point-on-surface
Or install the Turf module that includes it as a function:
$ npm install @turf/turf
FAQs
turf point-on-surface module
The npm package @turf/point-on-surface receives a total of 731 weekly downloads. As such, @turf/point-on-surface popularity was classified as not popular.
We found that @turf/point-on-surface demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.