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

@turf/bearing

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/bearing - npm Package Compare versions

Comparing version 4.5.2 to 4.6.0

19

index.js

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

* @example
* var point1 = {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-75.343, 39.984]
* }
* };
* var point2 = {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-75.534, 39.123]
* }
* };
* var point1 = turf.point([-75.343, 39.984]);
* var point2 = turf.point([-75.534, 39.123]);
*

@@ -41,3 +27,2 @@ * var bearing = turf.bearing(point1, point2);

*/
function bearing(start, end, final) {

@@ -44,0 +29,0 @@ if (final === true) return calculateFinalBearing(start, end);

8

package.json
{
"name": "@turf/bearing",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf bearing module",

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

"devDependencies": {
"@turf/destination": "^4.5.2",
"@turf/helpers": "^4.5.2",
"@turf/destination": "^4.6.0",
"@turf/helpers": "^4.6.0",
"benchmark": "^2.1.4",

@@ -38,4 +38,4 @@ "tape": "^4.6.3",

"dependencies": {
"@turf/invariant": "^4.5.2"
"@turf/invariant": "^4.6.0"
}
}

@@ -17,18 +17,4 @@ # @turf/bearing

```javascript
var point1 = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-75.343, 39.984]
}
};
var point2 = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-75.534, 39.123]
}
};
var point1 = turf.point([-75.343, 39.984]);
var point2 = turf.point([-75.534, 39.123]);

@@ -35,0 +21,0 @@ var bearing = turf.bearing(point1, point2);

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