{"_id":"mhchemparser","_rev":"3548892","name":"mhchemparser","description":"Parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in MathJax, KaTeX and similar projects.","dist-tags":{"latest":"4.2.1"},"maintainers":[{"name":"mhchem","email":""}],"time":{"modified":"2024-09-19T02:38:44.000Z","created":"2021-04-21T20:32:49.668Z","4.2.1":"2023-05-24T08:17:06.027Z","4.2.0":"2023-05-22T20:51:47.919Z","4.1.1":"2021-07-06T05:29:25.771Z","4.1.0":"2021-05-17T19:34:47.629Z","4.0.0":"2021-04-21T20:32:49.668Z"},"users":{},"author":{"name":"Martin Hensel"},"repository":{"type":"git","url":"git+https://github.com/mhchem/mhchemParser.git"},"versions":{"4.2.1":{"name":"mhchemparser","version":"4.2.1","description":"Parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in MathJax, KaTeX and similar projects.","keywords":["mhchem","MathJax","LaTeX","chemistry"],"homepage":"https://github.com/mhchem/mhchemParser","bugs":{"url":"https://github.com/mhchem/mhchemParser/issues"},"repository":{"type":"git","url":"git+https://github.com/mhchem/mhchemParser.git"},"license":"Apache-2.0","author":{"name":"Martin Hensel"},"main":"dist/mhchemParser.js","types":"./dist/mhchemParser.d.ts","gitHead":"2159346e2bb45ec6beaf64b617e0e5a049b4d200","_id":"mhchemparser@4.2.1","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"shasum":"d73982e66bc06170a85b1985600ee9dabe157cb0","size":44450,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mhchemparser/download/mhchemparser-4.2.1.tgz"},"_npmUser":{"name":"mhchem","email":"noreply-npm@MartinHensel.de"},"directories":{},"maintainers":[{"name":"mhchem","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mhchemparser_4.2.1_1684916225864_0.8648155307987735"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-24T08:17:06.027Z","publish_time":1684916226027,"_source_registry_name":"default","_cnpm_publish_time":1684916226027},"4.2.0":{"name":"mhchemparser","version":"4.2.0","description":"Parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in MathJax, KaTeX and similar projects.","keywords":["mhchem","MathJax","LaTeX","chemistry"],"homepage":"https://github.com/mhchem/mhchemParser","bugs":{"url":"https://github.com/mhchem/mhchemParser/issues"},"repository":{"type":"git","url":"git+https://github.com/mhchem/mhchemParser.git"},"license":"Apache-2.0","author":{"name":"Martin Hensel"},"main":"dist/mhchemParser.js","types":"./dist/mhchemParser.d.ts","gitHead":"d617140400289f1a859ef11879de524b3b858e12","_id":"mhchemparser@4.2.0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"shasum":"724f0b8372912d078cc08a964b0c74f1be98a110","size":44402,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mhchemparser/download/mhchemparser-4.2.0.tgz"},"_npmUser":{"name":"mhchem","email":"noreply-npm@MartinHensel.de"},"directories":{},"maintainers":[{"name":"mhchem","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mhchemparser_4.2.0_1684788707725_0.7992614694349596"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-22T20:51:47.919Z","publish_time":1684788707919,"_source_registry_name":"default","_cnpm_publish_time":1684788707919},"4.1.1":{"name":"mhchemparser","version":"4.1.1","description":"Parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in MathJax, KaTeX and similar projects.","keywords":["mhchem","MathJax","LaTeX","chemistry"],"homepage":"https://github.com/mhchem/mhchemParser","bugs":{"url":"https://github.com/mhchem/mhchemParser/issues"},"repository":{"type":"git","url":"git+https://github.com/mhchem/mhchemParser.git"},"license":"Apache-2.0","author":{"name":"Martin Hensel"},"main":"dist/mhchemParser.js","gitHead":"b1bd0670df7e9bbd5a724ac642aa2664d6e500b3","_id":"mhchemparser@4.1.1","_nodeVersion":"12.16.3","_npmVersion":"7.19.1","dist":{"shasum":"a2142fdab37a02ec8d1b48a445059287790becd5","size":33653,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mhchemparser/download/mhchemparser-4.1.1.tgz"},"_npmUser":{"name":"mhchem","email":"noreply-npm@MartinHensel.de"},"directories":{},"maintainers":[{"name":"mhchem","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mhchemparser_4.1.1_1625549365616_0.4773157468630407"},"_hasShrinkwrap":false,"publish_time":1625549365771,"_cnpm_publish_time":1625549365771,"_cnpmcore_publish_time":"2021-12-16T23:30:17.648Z"},"4.1.0":{"name":"mhchemparser","version":"4.1.0","description":"Parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in MathJax, KaTeX and similar projects.","keywords":["mhchem","MathJax","LaTeX","chemistry"],"homepage":"https://github.com/mhchem/mhchemParser","bugs":{"url":"https://github.com/mhchem/mhchemParser/issues"},"repository":{"type":"git","url":"git+https://github.com/mhchem/mhchemParser.git"},"license":"Apache-2.0","author":{"name":"Martin Hensel"},"main":"dist/mhchemParser.js","gitHead":"cfb00dfc88015b4015f517dbb04abc94a7274742","_id":"mhchemparser@4.1.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.8","dist":{"shasum":"db204c394c46c0070e115270a7e45c15b5f0c2f5","size":33884,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mhchemparser/download/mhchemparser-4.1.0.tgz"},"_npmUser":{"name":"mhchem","email":"noreply-npm@MartinHensel.de"},"directories":{},"maintainers":[{"name":"mhchem","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mhchemparser_4.1.0_1621280087513_0.8822446942341375"},"_hasShrinkwrap":false,"publish_time":1621280087629,"_cnpm_publish_time":1621280087629,"_cnpmcore_publish_time":"2021-12-16T23:30:18.006Z"},"4.0.0":{"name":"mhchemparser","version":"4.0.0","description":"Parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in MathJax, KaTeX and similar projects.","keywords":["mhchem","MathJax","LaTeX","chemistry"],"homepage":"https://github.com/mhchem/mhchemParser","bugs":{"url":"https://github.com/mhchem/mhchemParser/issues"},"repository":{"type":"git","url":"git+https://github.com/mhchem/mhchemParser.git"},"license":"Apache-2.0","author":{"name":"Martin Hensel"},"main":"dist/mhchemParser.js","gitHead":"9fd3f1da07038124c6a1992a3245064024c1c858","_id":"mhchemparser@4.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.8","dist":{"shasum":"8acd52012099fc4b2afd1d397a7b132abe49f704","size":33792,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mhchemparser/download/mhchemparser-4.0.0.tgz"},"_npmUser":{"name":"mhchem","email":"noreply-npm@MartinHensel.de"},"directories":{},"maintainers":[{"name":"mhchem","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mhchemparser_4.0.0_1619037169539_0.30924182474700124"},"_hasShrinkwrap":false,"publish_time":1619037169668,"_cnpm_publish_time":1619037169668,"_cnpmcore_publish_time":"2021-12-16T23:30:18.232Z"}},"readme":"# mhchem Parser\n\nmhchem is an input syntax for typesetting chemical equations and physical units.\n\nThis is the parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in [MathJax](https://mathjax.org), [KaTeX](https://katex.org) and similar projects.\n\n\n## Usage\n\nUsers of MathJax and KaTex can write\n\n    \\ce{CO2 + C -> 2 CO}\n    \\pu{123 kJ*mol-1}\n\nFor a hundred more features and how to configure MathJax or KaTeX, see\n[the manual](https://mhchem.github.io/MathJax-mhchem/).\n\n\n## Usage for Downstream Software\n\nFor \"translating\" the `\\ce` syntax, make a call like\n\n    mhchemParser.toTex(\"CO2 + C -> 2 CO\", \"ce\");\n\nThis will return\n\n    \"{\\mathrm{CO}{\\vphantom{A}}_{\\smash[t]{2}} {}+{} \\mathrm{C} {}\\mathrel{\\longrightarrow}{} 2\\,\\mathrm{CO}}\"\n\nFor the `\\pu` command, call\n\n    mhchemParser.toTex(\"123 kJ*mol-1\", \"pu\");\n\nYou could also insert a TeX string. All instances of `\\ce` and `\\pu` will be replaced in the returned value. This might make integration easier, because the mhchem parser does not need to be called from the TeX parser.\n\n    mhchemParser.toTex(\"m_{\\\\ce{H2O}}\", \"tex\");\n","_attachments":{},"homepage":"https://github.com/mhchem/mhchemParser","bugs":{"url":"https://github.com/mhchem/mhchemParser/issues"},"license":"Apache-2.0"}