Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
turf-point-on-line
Advanced tools
[![build status](https://secure.travis-ci.org/Turfjs/turf-point-on-line.png)](http://travis-ci.org/Turfjs/turf-point-on-line)
turf.point-on-line (Line, Point)
Takes a Point and a LineString and calculates the closest Point on the LineString
parameter | type | description |
---|---|---|
Line | LineString | to snap to |
Point | Point | to snap from |
var line = turf.linestring([
[
-77.0316696166992,
38.878605901789236
],
[
-77.02960968017578,
38.88194668656296
],
[
-77.02033996582031,
38.88408470638821
],
[
-77.02566146850586,
38.885821800123196
],
[
-77.02188491821289,
38.88956308852534
],
[
-77.01982498168944,
38.89236892551996
]
]);
var pt = turf.point([-77.02544689178467,38.88689075977245]);
var snapped = turf.pointOnLine(line, pt);
//=snapped
Requires nodejs.
$ npm install turf-point-on-line
$ npm test
FAQs
# pointOnLine
The npm package turf-point-on-line receives a total of 10,933 weekly downloads. As such, turf-point-on-line popularity was classified as popular.
We found that turf-point-on-line demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.