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

@turf/line-intersect

Package Overview
Dependencies
Maintainers
9
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-intersect

turf line-intersect module

  • 7.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
150K
decreased by-82.48%
Maintainers
9
Weekly downloads
 
Created

What is @turf/line-intersect?

@turf/line-intersect is a module from the Turf.js library that provides geospatial analysis tools. This specific module is used to find the intersection points between two or more lines. It is useful in various geospatial applications, such as mapping, urban planning, and geographic information systems (GIS).

What are @turf/line-intersect's main functionalities?

Find Intersection Points

This feature allows you to find the intersection points between two lines. In the code sample, two lines are defined, and the `lineIntersect` function is used to find their intersection points.

const turf = require('@turf/turf');

const line1 = turf.lineString([[0, 0], [2, 2]]);
const line2 = turf.lineString([[0, 2], [2, 0]]);

const intersections = turf.lineIntersect(line1, line2);
console.log(intersections);

Other packages similar to @turf/line-intersect

Keywords

FAQs

Package last updated on 09 Aug 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