
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
mathml2asciimathjs
Advanced tools
mathml2asciimathjs
is a JavaScript library that converts MathML to ASCII math notation. This library is a direct port of a public Ruby library to JavaScript/TypeScript, enabling easy integration into web projects and applications to work seamlessly with both mathematical markup languages. It is a not a full complete conversion lib, so if you want to extend our funcionalities, feel free!
You can install mathml2asciimathjs
using npm:
npm install mathml2asciimathjs
Or yarn:
yarn install mathml2asciimathjs
To use asciimath2mathmljs in your project, you can follow this basic example:
const { MathML2AsciiMath } = require('mathml2asciimathjs');
// Example conversion
const mathML = '<math>...</math>';
const conversor = new MathML2AsciiMath();
const asciiMath = conversor.convert(mathML);
console.log(asciiMath); // it will print a tranlated asciimath formula
This library is inspired by and based on the original Ruby library. The JavaScript/TypeScript version was created to provide the same functionality for projects running in JavaScript environments.
FAQs
Library to convert MathML to AsciiMath
The npm package mathml2asciimathjs receives a total of 60 weekly downloads. As such, mathml2asciimathjs popularity was classified as not popular.
We found that mathml2asciimathjs 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.