Gathering detailed insights and metrics for @spatial/line-intersect
Gathering detailed insights and metrics for @spatial/line-intersect
Gathering detailed insights and metrics for @spatial/line-intersect
Gathering detailed insights and metrics for @spatial/line-intersect
A modular geospatial engine written in JavaScript and TypeScript
npm install @spatial/line-intersect
Typescript
Module System
Node Version
NPM Version
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,844 Stars
3,791 Commits
981 Forks
179 Watchers
49 Branches
177 Contributors
Updated on Jul 16, 2025
Latest Version
2.0.0
Package Id
@spatial/line-intersect@2.0.0
Unpacked Size
16.52 kB
Size
3.59 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
5
Takes any LineString or Polygon GeoJSON and returns the intersecting point(s).
line1
(Geometry | FeatureCollection | Feature<(LineString | MultiLineString | Polygon | MultiPolygon)>) any LineString or Polygonline2
(Geometry | FeatureCollection | Feature<(LineString | MultiLineString | Polygon | MultiPolygon)>) any LineString or Polygon1var line1 = turf.lineString([[126, -11], [129, -21]]); 2var line2 = turf.lineString([[123, -18], [131, -14]]); 3var intersects = turf.lineIntersect(line1, line2); 4 5//addToMap 6var addToMap = [line1, line2, intersects]
Returns FeatureCollection<Point> point(s) that intersect both
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/line-intersect
Or install the Turf module that includes it as a function:
1$ npm install @turf/turf
No vulnerabilities found.
Reason
25 commit(s) and 16 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
all changesets reviewed
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-14
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