
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@turf/boolean-touches
Advanced tools
Boolean-touches true if none of the points common to both geometries intersect the interiors of both geometries.
feature1 (Geometry | Feature<any>) GeoJSON Feature or Geometryfeature2 (Geometry | Feature<any>) GeoJSON Feature or Geometryvar line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);
var point = turf.point([1, 1]);
turf.booleanTouches(point, line);
//=true
Returns boolean true/false
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 single module individually:
$ npm install @turf/boolean-touches
Or install the all-encompassing @turf/turf module that includes all modules as functions:
$ npm install @turf/turf
JSTS is a JavaScript library of spatial predicates and functions for processing geometry. It is similar to @turf/boolean-touches in that it can determine spatial relationships between geometries, including whether they touch. JSTS is more comprehensive, offering a wider range of geometric operations and predicates.
Geolib is a library for geospatial operations in JavaScript. While it focuses more on distance and area calculations, it also provides some basic spatial relationship checks. Compared to @turf/boolean-touches, Geolib is less specialized in topological relationships but can be used for simpler geospatial tasks.
FAQs
turf boolean-touches module
The npm package @turf/boolean-touches receives a total of 324,576 weekly downloads. As such, @turf/boolean-touches popularity was classified as popular.
We found that @turf/boolean-touches demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.