Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/distance

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/distance - npm Package Compare versions

Comparing version 3.6.1 to 3.6.3

index.d.ts

4

index.js

@@ -15,4 +15,4 @@ var getCoord = require('@turf/invariant').getCoord;

* @param {Feature<Point>} to destination point
* @param {String} [units=kilometers] can be degrees, radians, miles, or kilometers
* @return {Number} distance between the two points
* @param {string} [units=kilometers] can be degrees, radians, miles, or kilometers
* @return {number} distance between the two points
* @example

@@ -19,0 +19,0 @@ * var from = {

{
"name": "@turf/distance",
"version": "3.6.1",
"version": "3.6.3",
"description": "turf distance module",

@@ -30,5 +30,5 @@ "main": "index.js",

"dependencies": {
"@turf/invariant": "^3.5.2",
"@turf/helpers": "^3.6.1"
"@turf/invariant": "^3.6.3",
"@turf/helpers": "^3.6.3"
}
}

@@ -14,3 +14,3 @@ # @turf/distance

- `to` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)>** destination point
- `units` **\[[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** can be degrees, radians, miles, or kilometers (optional, default `kilometers`)
- `units` **\[[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** can be degrees, radians, miles, or kilometers (optional, default `kilometers`)

@@ -50,3 +50,3 @@ **Examples**

Returns **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** distance between the two points
Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** distance between the two points

@@ -53,0 +53,0 @@ <!-- This file is automatically generated. Please don't edit it directly:

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