
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
robust-split
Advanced tools
Use this package when you want to split a double precision floating point number into a 2-part non-overlapping sequence.
Why would you ever want to do that? Well these sequences are an efficient way to perform exact mathmatical operations on numbers in javascript.
npm install robust-split
If you want to use this in the browser, check out browserify
var rsplit = require('robust-split');
var p = rsplit(0.3);
console.log(p); //[ 2.980232227667301e-9,
// 0.29999999701976776 ]
You could then pass the sequence into [robust-estimate-float](https://github.com/tmpvar/robust-estimate-float)
var num = require('robust-estimate-float');
var r = num(p);
console.log(r) // 0.3
See the rest of the robust family of packages
This code is pulled from Mikola Lysenko's Robust arithmetic in JavaScript class notes.
FAQs
convert a number into a 2-part non-overlapping sequence
The npm package robust-split receives a total of 2,348 weekly downloads. As such, robust-split popularity was classified as popular.
We found that robust-split 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.