puptex:使用Puppeteer(无头Chrome)渲染数学

时间:2021-05-26 20:56:02
【文件属性】:
文件名称:puptex:使用Puppeteer(无头Chrome)渲染数学
文件大小:92KB
文件格式:ZIP
更新时间:2021-05-26 20:56:02
math mathjax puppeteer JavaScript PupTex 使用 (无头Chrome)渲染数学: 比快2倍 可配置的并发限制 正确渲染CJK字符 用法 节点 const puptex = require ( 'puptex' ) ; ( async ( ) => { puptex . config ( { concurrency : 2 , mathJax : { } , } ) await puptex . launch ( ) const data = await puptex . renderMath ( 'E=mc^2' ) // data => {errors: [], svg: '<svg .../>', mml: '', widht: '', height: '', ...} puptex . close ( ) } ) ( ) 考阿 原料药 puptex.config(o
【文件预览】:
puptex-master
----.travis.yml(44B)
----index.js(161B)
----package.json(897B)
----test()
--------puptex.spec.js(2KB)
--------__snapshots__()
----src()
--------puptex.js(3KB)
--------puptex.html(403B)
----doc()
--------bench.txt(179B)
--------perfs()
----examples()
--------puptex-koa()
----.gitignore(43B)
----CHANGELOG.md(546B)
----README.md(2KB)
----yarn.lock(160KB)
----scripts()
--------perf.sh(680B)
--------preview.js(828B)
--------bench.js(1KB)

网友评论