
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
polyline-splitter
Advanced tools
A small (<10kb minified) javascript library for splitting geojson polylines by other polylines.
npm install polyline-splitter
Accepts either a geojson Feature<LineString | MultiLineString> or LineString | MultiLineString.
Returns a MultiLineString containing the joined lines.
If no intersection points are found returns the first argument.
import polylineSplitter from 'polyline-splitter'
// or
const polylineSplitter = require('polyline-splitter')
const line1 = {
"type": "LineString",
"coordinates": [[0, 0],[10, 0]]
}
const line2 = {
"type": "LineString",
"coordinates": [[5, -10],[5, 10]]
}
const output = polylineSplitter(line1, line2)
// => {
// "type":"MultiLineString",
// "coordinates":[
// [[0,0], [5,0]],
// [[5,0], [10,0]],
// [[5,-10], [5,0]],
// [[5,0], [5,10]]
// ]
// }
FAQs
Split polylines by other polylines.
We found that polyline-splitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.