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.
### Very useful JavaScript Number operator overloading for asynchronous http math operations
npm install --save async-nmbr
npm install --save-dev @babel/core @babel/cli babel-plugin-overload babel-template
.babelrc
in your projects root directory{ "plugins": ["overload"] }
npx babel src -d lib
Once the initial setup is completed you'll need to actually overload the operators for the Number
type.
You can do this by simply requiring this package and passing the Number
object in every file that you want to use it in, like this:
require('async-nmbr')(Number);
Now that the operators are overloaded, you can do awesome calculations like:
await (1 + 1); // 2
await (100 - 1); // 99
await (2 * 2); // 4
await (Math.PI / 3); // 1.0471975511965976
(Math.PI * 3).then(res => res / 3).then(pi => console.log(pi));
Please note: when using this package you'll always have to await your math calculations (isn't that awesome?)
FAQs
### Very useful JavaScript Number operator overloading for asynchronous http math operations
The npm package async-nmbr receives a total of 0 weekly downloads. As such, async-nmbr popularity was classified as not popular.
We found that async-nmbr 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.