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

@turf/point-to-line-distance

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/point-to-line-distance - npm Package Compare versions

Comparing version 4.7.1 to 4.7.3

18

package.json
{
"name": "@turf/point-to-line-distance",
"version": "4.7.1",
"version": "4.7.3",
"description": "turf point-to-line-distance module",

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

"devDependencies": {
"@turf/circle": "4.7.1",
"@turf/circle": "^4.7.3",
"benchmark": "^2.1.4",

@@ -42,10 +42,10 @@ "load-json-file": "^2.0.0",

"dependencies": {
"@turf/meta": "4.7.1",
"@turf/bearing": "4.7.1",
"@turf/helpers": "4.7.1",
"@turf/distance": "4.7.1",
"@turf/invariant": "4.7.1",
"@turf/rhumb-bearing": "4.7.1",
"@turf/rhumb-distance": "4.7.1"
"@turf/bearing": "^4.7.3",
"@turf/distance": "^4.7.3",
"@turf/helpers": "^4.7.3",
"@turf/invariant": "^4.7.3",
"@turf/meta": "^4.7.3",
"@turf/rhumb-bearing": "^4.7.3",
"@turf/rhumb-distance": "^4.7.3"
}
}

@@ -19,5 +19,5 @@ # @turf/point-to-line-distance

var pt = turf.point([0, 0]);
var line = turf.lineString([[1, 1],[-1, 1]);
var line = turf.lineString([[1, 1],[-1, 1]]);
var d = pointToLineDistance(pt, line, 'miles');
var distance = turf.pointToLineDistance(pt, line, 'miles');
//=69.11854715938406

@@ -24,0 +24,0 @@ ```

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