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.
Evaluatex is a parser that reads and evaluates LaTeX and ASCII math. Use in Node, Angular, or with vanilla Javascript on both clients and servers.
Evaluatex can safely resolve math without relying Javascript's native eval()
function. It can also support custom variables and functions, so you can pass in arbitrary values without having to hard-code the math.
Evaluatex is reasonably stable. It has been tested for common patterns and use cases, but when provoked it may do weird and unexpected things such as eating your cat.
npm install evaluatex
# or
yarn install/add evaluatex
const evaluatex = require("evaluatex");
// or
import evaluatex from "evaluatex";
Get yarn and do yarn install
.
yarn build
transpiles ES6 sources to dist/
.
yarn test
runs tests in the test/
directory.
const fn = evaluatex(expression, constants = {}, options = {});
const result = fn(variables = {});
evaluatex()
compiles a text math expression into a function fn
.
expression
is an ASCII or LaTeX expression to be parsed and evaluated.constants
is a map of constant values - values that don't change if you invoke fn
more than once.options
is a map of options for the compiler.result
is the numerical result of the calculation.
variables
is a map of variables that can change between invocations.A complete manual is available on the project page.
FAQs
An ASCII and LaTeX math parser and evaluator
We found that evaluatex 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.