New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/nearest

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/nearest - npm Package Compare versions

Comparing version 3.0.15 to 3.0.16

10

package.json
{
"name": "@turf/nearest",
"version": "3.0.15",
"version": "3.0.16",
"description": "turf nearest module",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "https://github.com/Turfjs/turf-nearest.git"
"url": "git://github.com/Turfjs/turf.git"
},

@@ -23,5 +23,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/Turfjs/turf-nearest/issues"
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf-nearest",
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {

@@ -32,4 +32,4 @@ "benchmark": "^1.0.0",

"dependencies": {
"@turf/distance": "^3.0.15"
"@turf/distance": "^3.0.16"
}
}

@@ -1,6 +0,6 @@

# turf-nearest
# @turf/nearest
# nearest
Takes a reference [point](Point) and a FeatureCollection of Features
Takes a reference [point](http://geojson.org/geojson-spec.html#point) and a FeatureCollection of Features
with Point geometries and returns the

@@ -12,4 +12,4 @@ point from the FeatureCollection closest to the reference. This calculation

- `targetPoint` **Feature<Point>** the reference point
- `points` **FeatureCollection<Point>** against input point set
- `targetPoint` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** the reference point
- `points` **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** against input point set

@@ -69,3 +69,3 @@ **Examples**

Returns **Feature<Point>** the closest point in the set to the reference point
Returns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** the closest point in the set to the reference point

@@ -84,3 +84,3 @@ ---

```sh
$ npm install turf-nearest
$ npm install @turf/nearest
```

@@ -91,3 +91,3 @@

```sh
$ npm install turf
$ npm install @turf/turf
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc