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

@turf/boolean-touches

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/boolean-touches

turf boolean-touches module

  • 7.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
114K
increased by26.45%
Maintainers
0
Weekly downloads
 
Created

What is @turf/boolean-touches?

@turf/boolean-touches is a module from the Turf.js library that provides geospatial analysis tools. This specific package is used to determine if two geometries touch each other, meaning they have at least one boundary point in common but do not overlap.

What are @turf/boolean-touches's main functionalities?

Check if two geometries touch

This feature allows you to check if two geometries touch each other. In the code sample, a point and a line are defined, and the function checks if the point touches the line. The result is true because the point is on the line's boundary.

const turf = require('@turf/boolean-touches');
const point = turf.point([1, 1]);
const line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);
const touches = turf(point, line);
console.log(touches); // true

Other packages similar to @turf/boolean-touches

Keywords

FAQs

Package last updated on 29 Dec 2024

Did you know?

Socket

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.

Install

Related posts

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