mathml2omml
Advanced tools
Comparing version
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
617371
131%8
-27.27%6707
242.37%66
40.43%0
-100%10
-88.64%