
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@lit-protocol/bigfx
Advanced tools
`BigFX` is a JavaScript decimal fixed-point number library with unlimited size, built on the native BigInt.
BigFX is a JavaScript decimal fixed-point number library with unlimited size, based on the native BigInt. It supports up to 15 digits of fractional precision, and is internally stored as a BigInt scaled by a factor of 1e+15. BigFX can work on both Node.js and the browser.
Using NPM:
npm install bigfx
On the browser:
<script src="https://raw.githubusercontent.com/nirvanasupermind/bigfx/main/bigfx.min.js" type="text/javascript"></script>
var BigFX = require("bigfx");
console.log(new BigFX(36.9).add(45).mul(94).toFixed(6)); // 7698.600000
console.log(new BigFX(9007199254740991n).add(2).toString()); // 9007199254740993
console.log(BigFX.PI.neg().cos().toString()); // -1
constructor() - Creates a BigFX object equal to 0constructor(number) - Creates a BigFX object from a number (precision may be lost)constructor(bigint) - Creates a BigFX object from a BigIntconstructor(bigfx) - Creates a BigFX object from another BigFX objectclone() - Returns a clone of a BigFX objectneg() - Returns negation of a BigFX objectadd(other) - Returns addition of two BigFX objects (converts other if needed)sub(other) - Returns subtraction of two BigFX objects (converts other if needed)mul(other) - Returns multiplication of two BigFX objects (converts other if needed)div(other) - Returns division of two BigFX objects (converts other if needed)mod(other) - Returns modulo of two BigFX objects (converts other if needed)and(other) - Returns bitwise AND of two BigFX objects (converts other if needed, only works if both arguments are integers)or(other) - Returns bitwise OR of two BigFX objects (converts other if needed, only works if both arguments are integers)xor(other) - Returns bitwise XOR of two BigFX objects (converts other if needed, only works if both arguments are integers)shl(other) - Returns left-shift of two BigFX objects (converts other if needed, only works if other is an integer)shr(other) - Returns right-shift of two BigFX objects (converts other if needed, only works if other is an integer)exp() - Returns e raised to the power of a BigFX objectlog() - Returns natural logarithm of a BigFX objectpow(other) - Returns exponentiation of two BigFX objects (converts other if needed)sqrt() - Returns the square root of a BigFX objectsin() - Returns the sine of a BigFX objectcos() - Returns the cosine of a BigFX objecttan() - Returns the tangent of a BigFX objectlt(other) - Checks if a BigFX object is less than another BigFX objectle(other) - Checks if a BigFX object is less than or equal to another BigFX objectgt(other) - Checks if a BigFX object is greater than another BigFX objectge(other) - Checks if a BigFX object is greater than or equal to another BigFX objecteq(other) - Checks if a BigFX object is equal to another BigFX objectne(other) - Checks if a BigFX object is not equal to another BigFX objecttoNumber() - Converts a BigFX object to a numbertoBigInt() - Converts a BigFX object to a BigInttoScaledBigInt() - Converts a BigFX object to a BigInt scaled up by a factor of 1e+15 (the internal representation)toString(radix = 10)- Converts a BigFX object to a string in the specified radixtoFixed(fractionDigits = 0)- Converts a BigFX object to a string with the specified number of fraction digitstoExponential()- Converts a BigFX object to a string in scientific notation formatstatic ZERO- A BigFX object with a value of 0static ONE- A BigFX object with a value of 1static PI- A BigFX object with a value of πstatic E- A BigFX object with a value of estatic random()- Creates a BigFX object with a pseudo-random value between 0 and 1FAQs
`BigFX` is a JavaScript decimal fixed-point number library with unlimited size, built on the native BigInt.
We found that @lit-protocol/bigfx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.