New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mathml2omml

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathml2omml - npm Package Compare versions

Comparing version

to
0.5.0

dist/index.cjs.js

36

package.json
{
"name": "mathml2omml",
"version": "0.4.0",
"version": "0.5.0",
"description": "a MathML to OMML converter ",
"main": "dist/index.js",
"main": "./dist/index.js",
"type": "module",
"types": "./dist/index.d.ts",
"scripts": {
"test": "node --experimental-vm-modules node_modules/.bin/jest",
"lint": "eslint src/",
"test": "node --experimental-vm-modules ./node_modules/.bin/jest",
"lint": "biome check src/ test/",
"format": "biome format --write src/ test/",
"transpile": "rollup -c",
"prepublishOnly": "npm run lint && npm run transpile"
"copy_types": "cp src/index.d.ts dist/",
"prepublishOnly": "npm run lint && npm run transpile && npm run copy_types",
"prepare": "husky"
},

@@ -28,15 +32,15 @@ "repository": {

"homepage": "https://github.com/fiduswriter/mathml2omml#readme",
"files": [
"dist"
],
"devDependencies": {
"entities": "^4.3.1",
"eslint": "^8.17.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.2",
"eslint-plugin-promise": "^6.0.0",
"jest": "^28.1.0",
"rollup": "^2.78.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"rollup-plugin-terser": "^7.0.2",
"xml-formatter": "^2.6.1"
"@biomejs/biome": "1.9.4",
"@rollup/plugin-node-resolve": "^16.0.1",
"entities": "^6.0.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^15.5.0",
"rollup": "^4.35.0",
"xml-formatter": "^3.6.4"
}
}

@@ -5,2 +5,4 @@ # mathml2omml

## Usage
You can use it like this:

@@ -32,9 +34,26 @@

> </m:oMath>
```
## TypeScript Support
This library includes TypeScript definitions:
```ts
import { mml2omml } from "mathml2omml";
// Simple usage
const omml = mml2omml(mathmlString);
// With options
const omml = mml2omml(mathmlString, { disableDecode: true });
// Using the class directly
import { MML2OMML } from "mathml2omml";
const converter = new MML2OMML(mathmlString);
converter.run();
const result = converter.getResult();
```
## License
License
=======
LGPL v.3.0 or later.

@@ -41,0 +60,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet