Gathering detailed insights and metrics for @spatial/rhumb-bearing
Gathering detailed insights and metrics for @spatial/rhumb-bearing
Gathering detailed insights and metrics for @spatial/rhumb-bearing
Gathering detailed insights and metrics for @spatial/rhumb-bearing
A modular geospatial engine written in JavaScript and TypeScript
npm install @spatial/rhumb-bearing
Typescript
Module System
Node Version
NPM Version
70
Supply Chain
86.2
Quality
77.8
Maintenance
100
Vulnerability
100
License
TypeScript (86.94%)
JavaScript (13.05%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
9,840 Stars
3,791 Commits
980 Forks
179 Watchers
48 Branches
177 Contributors
Updated on Jul 12, 2025
Latest Version
2.0.0
Package Id
@spatial/rhumb-bearing@2.0.0
Unpacked Size
12.93 kB
Size
3.45 kB
File Count
7
NPM Version
lerna/3.22.1/node@v12.18.2+x64 (linux)
Node Version
12.18.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Takes two points and finds the bearing angle between them along a Rhumb line i.e. the angle measured in degrees start the north line (0 degrees)
start
Coord starting Pointend
Coord ending Pointoptions
Object? Optional parameters
options.final
boolean calculates the final bearing if true (optional, default false
)1var point1 = turf.point([-75.343, 39.984], {"marker-color": "#F00"}); 2var point2 = turf.point([-75.534, 39.123], {"marker-color": "#00F"}); 3 4var bearing = turf.rhumbBearing(point1, point2); 5 6//addToMap 7var addToMap = [point1, point2]; 8point1.properties.bearing = bearing; 9point2.properties.bearing = bearing;
Returns number bearing from north in decimal degrees, between -180 and 180 degrees (positive clockwise)
This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.
Install this module individually:
1$ npm install @spatial/rhumb-bearing
Or install the Turf module that includes it as a function:
1$ npm install @turf/turf
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
all changesets reviewed
Reason
25 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
project is fuzzed
Details
Reason
all dependencies are pinned
Details
Reason
7 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More