
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A point in 2d space
npm install point2d --save
var Point = require('point2d');
var point1 = new Point(1, 2);
console.log(point1.x); // 1
console.log(point1.y); // 2
var point2 = new Point(); // (0, 0)
console.log(new Point().distance(new Point())); // 5
console.log(new Point().manhattanDistance(new Point())); // 7
console.log(new Point(-3, 4).abs()); // (3, 4)
console.log(new Point(1, 2).equals(new Point(1, 2))); // true
console.log(new Point(1, 2).add(new Point(2, 3))); // (3, 5)
console.log(new Point(1, 2).sub(new Point(1, 1))); // (0, 1)
Returns the Euclidean distance between this point and another point
Returns the Manhattan distance between this point and another point
Returns a new point with coordinates in absolute value
Returns true if the x and y coordinate of this point equals the x and y coordinate of the other point
Returns a new point with the coordinates added together
Returns a new point with the coordinates of this point subtracted by the other point
FAQs
A point in 2d space
We found that point2d 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.