
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Validate math expressions in JavaScript and TypeScript. Fast, lightweight, and accurate.
MathCheck is a lightweight library for validating, simplifying, and converting mathematical expressions to LaTeX, written in TypeScript. It's perfect for educational apps, scientific tools, and financial applications that require accurate mathematical computations and formatting.
You can install MathCheck using npm or yarn:
npm install mathcheck
or
yarn add mathcheck
import {
validateExpression,
simplifyExpression,
convertToLatex,
} from "mathcheck";
const validation = validateExpression("(2 + 3) * 5");
console.log(validation); // { isValid: true }
const simplified = simplifyExpression("2 + 3 * 5");
console.log(simplified); // { success: true, result: 17 }
const latex = convertToLatex("(2 + 3) * 5");
console.log(latex); // { success: true, latex: '\\left(2 + 3\\right) \\cdot 5' }
validateExpression(expression: MathExpression): ValidationResult
simplifyExpression(expression: MathExpression): SimplificationResult
convertToLatex(expression: MathExpression): LatexConversionResult
This project is licensed under the MIT License. See the LICENSE file for more information.
Feel free to open issues or submit pull requests to improve MathCheck. All contributions are welcome! 🌟
Created by Kledenai. me@kledenai.com.
FAQs
Validate math expressions in JavaScript and TypeScript. Fast, lightweight, and accurate.
We found that mathcheck 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.