Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
algebra-latex
Advanced tools
An npm module, with no dependencies, for parsing LaTeX math to a regular math string (ascii math), that can be parsed to other algebra or math libraries like algebrite and algebra.js
const AlgebraLatex = require('algebra-latex')
// Parse from LaTeX ...
const latexInput = '\\frac{1}{\\sqrt{2}}\\cdot x=10'
const algebraObj = new AlgebraLatex().parseLatex(latexInput)
// ... or parse from regular math string
const mathInput = '1/sqrt(2)*x=10'
const algebraObj = new AlgebraLatex().parseMath(mathInput)
console.log(algebraObj.toMath()) // output: 1/sqrt(2)*x=10
console.log(algebraObj.toLatex()) // output: \frac{1}{\sqrt{2}}\cdot x=10
Supported libraries
NOTE: The above libraries are optional, and have to be installed before use
continuing from example above
...
var algebraJS = require('algebra.js')
var algebrite = require('algebrite')
var coffeequate = require('coffeequate')
// For algebra.js
algebraObj.toAlgebra(algebraJS) // Will either return an algebra.js expression or equation
// For algebrite
algebraObject.toAlgebrite(algebrite)
// For coffequate
algebraObject.toCoffeequate(coffeequate)
FAQs
Parse Latex math to a regular math string or algebra.js
The npm package algebra-latex receives a total of 888 weekly downloads. As such, algebra-latex popularity was classified as not popular.
We found that algebra-latex 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.