
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@infernus/distance
Advanced tools
A wrapper of the popular SA-MP distance library for samp-node.
pnpm add @infernus/core @infernus/distance
import { Player, PlayerEvent } from "@infernus/core";
import {
getClosestVehicleToPlayer,
isPlayerInRangeOfPlayer,
isPlayerInRangeOfVehicle,
} from "@infernus/distance";
PlayerEvent.onCommandText("pay", ({ player, subcommand, next }) => {
const [playerId2, amount] = subcommand;
if (!playerId2 || !amount) {
return player.sendClientMessage(
-1,
"USAGE: /pay <Player name/ID> <Amount>",
);
}
const player2 = Player.getInstance(+playerId2);
if (!player2 || !isPlayerInRangeOfPlayer(player, player2, 5.0)) {
return player.sendClientMessage(
0xff0000ff,
"The specified player is not near you!",
);
}
player.giveMoney(-amount);
player2.giveMoney(+amount);
return next();
});
PlayerEvent.onCommandText("fixtires", ({ player, next }) => {
const vehicle = getClosestVehicleToPlayer(player);
if (!vehicle || !isPlayerInRangeOfVehicle(player, vehicle, 10.0)) {
return player.sendClientMessage(
0xff0000ff,
"You are not near any vehicle!",
);
}
const { panels, doors, lights } = vehicle.getDamageStatus();
vehicle.updateDamageStatus(panels, doors, lights, 0);
return next();
});
FAQs
A wrapper of the popular SA-MP distance library for samp-node.
The npm package @infernus/distance receives a total of 9 weekly downloads. As such, @infernus/distance popularity was classified as not popular.
We found that @infernus/distance demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.