
Research
Security News
Malicious npm Package Wipes Codebases with Remote Trigger
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
mathml-to-clipboard
Advanced tools
A copy event handler for a web application that transforms MathML into AsciiMath and places it into the clipboard.
A JavaScript code to transform MathML into AsciiMath during "copy" and "dragstart" events. See example.html.
This allows the user to select a part of the rendered MathML on a page, then copy and paste the selection or use drag-and-drop. The selection is serialized to a plain text string as AsciiMath.
The script only handles MathML tags, so MathJax may not always be supported. It works with MathML polyfills, such as https://github.com/fred-wang/mathml.css/ .
Usage:
npm install Yaffle/mathml-to-clipboard
npm run-script build
Then add the script to your html page:
<script src="dist/main.js"></script>
It will set the "copy" and "dragstart" event handlers on the document.
FAQs
A copy event handler for a web application that transforms MathML into AsciiMath and places it into the clipboard.
The npm package mathml-to-clipboard receives a total of 0 weekly downloads. As such, mathml-to-clipboard popularity was classified as not popular.
We found that mathml-to-clipboard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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 typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.
Security News
New CNA status enables OpenJS Foundation to assign CVEs for security vulnerabilities in projects like ESLint, Fastify, Electron, and others, while leaving disclosure responsibility with individual maintainers.