
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.
@bignum/babel-plugin
Advanced tools
Babel plugin to replace tagged template literals with BigNum JS expressions.
Babel plugin to replace tagged template literals with BigNum JS expressions.
npm install -D @bignum/babel-plugin
npm install @bignum/template
# or
npm install @bignum/template-light
Include @bignum/babel-plugin in your Babel configuration.
{
"plugins": ["@bignum/babel-plugin"]
}
Use @bignum/template.f to write the calculation formula.
import { f } from "@bignum/template";
const num = 0.1;
const result = f`${num} + 0.1 * 2`;
console.log(result); // 0.3
console.log(f`${0.2} + ${0.1}`); // 0.3
Output:
import { multiply, add, toResult } from "@bignum/template/core";
const num = 0.1;
const result = toResult(add(num, multiply("0.1", 2)));
console.log(result); // 0.3
console.log(toResult(add(0.2, 0.1))); // 0.3
Or use @bignum/template-light.f to write the calculation formula.
import { f } from "@bignum/template-light";
console.log(f`${0.2} + ${0.1}`); // 0.3
Output:
import { add, execCompiled } from "@bignum/template-light/core";
console.log(execCompiled([0.2, 0.1], (args) => add(args[0], args[1]))); // 0.3
FAQs
Babel plugin to replace tagged template literals with BigNum JS expressions.
The npm package @bignum/babel-plugin receives a total of 1 weekly downloads. As such, @bignum/babel-plugin popularity was classified as not popular.
We found that @bignum/babel-plugin 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.

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.