Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
check-point-in-rectangle
Advanced tools
Checks if point is in rectangle or not. This is based on the concept explained by Martin Thoma
npm install check-point-in-rectangle
var checkPointIn = require('check-point-in-rectangle');
checkPointIn(point, rectangle [,precision])
point array of x and y coordinates
rectangle array of four corner points
precision is used in algorithm to compare the area of rectangle and sum of triangles formed by point with rectangle, default is 6
var checkPoint = require('check-point-in-rectangle');
if (checkPoint([5,5],[[0,0], [10,0], [10,10], [0,10]]) == true) {
console.log('Point is inside the rectangle');
}
```
## developing
Once you run
```npm isntall```
then for running test
```npm run test```
to create build
```npm run build```
## license
This project is licensed under the terms of the MIT license.
FAQs
Checks if point is in rectangle or not.
The npm package check-point-in-rectangle receives a total of 7 weekly downloads. As such, check-point-in-rectangle popularity was classified as not popular.
We found that check-point-in-rectangle 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.