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

@turf/along

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/along - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

16

index.js

@@ -14,3 +14,2 @@ var measureDistance = require('@turf/distance');

* @returns {Feature<Point>} Point `distance` `units` along the line
* @addToMap along, line
* @example

@@ -22,15 +21,10 @@ * var line = {

* "type": "LineString",
* "coordinates": [
* [-77.031669, 38.878605],
* [-77.029609, 38.881946],
* [-77.020339, 38.884084],
* [-77.025661, 38.885821],
* [-77.021884, 38.889563],
* [-77.019824, 38.892368]
* ]
* "coordinates": [[-83, 30], [-84, 36], [-78, 41]]
* }
* };
*
* var along = turf.along(line, 1, 'miles');
* //=along
* var along = turf.along(line, 200, 'miles');
*
* //addToMap
* var addToMap = [along, line]
*/

@@ -37,0 +31,0 @@ module.exports = function (line, distance, units) {

{
"name": "@turf/along",
"version": "4.1.0",
"version": "4.2.0",
"description": "turf along module",

@@ -35,10 +35,10 @@ "main": "index.js",

"tape": "^3.5.0",
"@turf/helpers": "^4.1.0"
"@turf/helpers": "^4.2.0"
},
"dependencies": {
"@turf/bearing": "^4.1.0",
"@turf/destination": "^4.1.0",
"@turf/distance": "^4.1.0",
"@turf/helpers": "^4.1.0"
"@turf/bearing": "^4.2.0",
"@turf/destination": "^4.2.0",
"@turf/distance": "^4.2.0",
"@turf/helpers": "^4.2.0"
}
}

@@ -21,15 +21,10 @@ # @turf/along

"type": "LineString",
"coordinates": [
[-77.031669, 38.878605],
[-77.029609, 38.881946],
[-77.020339, 38.884084],
[-77.025661, 38.885821],
[-77.021884, 38.889563],
[-77.019824, 38.892368]
]
"coordinates": [[-83, 30], [-84, 36], [-78, 41]]
}
};
var along = turf.along(line, 1, 'miles');
//=along
var along = turf.along(line, 200, 'miles');
//addToMap
var addToMap = [along, line]
```

@@ -36,0 +31,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