{"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":{"integrity":"sha512-R75CUN6O6e1t8bgailrF1qPq+HhVeFTM3XQ0uzI+mXTybmphy3b6h4NbLOYhemViQ3lUs+6CKRkC3Ws1TlYREA==","shasum":"a2142fdab37a02ec8d1b48a445059287790becd5","tarball":"http://registry-npm.ywwl.com/mhchemparser/download/mhchemparser-4.1.1.tgz","fileCount":9,"unpackedSize":180298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4+o2CRA9TVsSAnZWagAARbgP/RsqgGfWuWX0T6JgbVX2\nSgCJuhx5VcSJzlajkzIp7kyVVzhUHlpa1lo3N1OwDCJNkMjJTJhldCJ+hzqP\n6zHQYcII3sVy4uVkX+GzBoL+NJ5DpF2iX/JRUYImy7Y8raxoX1ehXzfxkgVL\nX5TvzxOlKQcwgzOp7sbj6bbSkOQCoQ1C4EnadHEX22jxqh/eJXzKVdfFWoBa\nP9BAOr1nxLX7l8EE8LUoeN4NP3iEoERlEGe6LJ/lo88dQoN7dHxAFWKJnzKS\nIYpN8UWHQ2sleAqMV7kmYOA9qI2FuCcGbEC6uIv5j4PSGr0Nyb1u7kecngjn\n0JYwg6fQ+iNVBOeBkDCznXP3n4LF9YBrEXsVq37e7/GeL2LdCSUZoUqYmXa6\nruIRyG+f045oft3XyEsPKbLav/3vWPHdnfUGGMSPjxUZfII9uojeSamSYqip\nX90DrrUPjx25EjaM4H6iuCBx26+YCRs5LYem0BLPqKK0ZU36obo8EbWDBz8Z\nGnklg77Q1P98CIXp7bkYb1xmuVYQM9v5PVC9yiEn6V0Ugrn2gjeVuq8L9+5J\nyOhSes+1LMe9g2tRo17YicxBGlLEspZ94UGlUGR7MDk6rFqTiugYjl39m6Us\nLHCLban0l9WQPiCG7qP5Tw6njhZE9TaBvDW62yBiD3GhJVMxSy2uCz8SG93g\neXJk\r\n=OXR8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOxHj24oY4QzMTXRi5fLptb/T0+Xae9/QwxWiR2x1uGAiEA9uh+557obarClf3AEg7ucrJbz5eBYL+7dzXhGk8UjkE="}],"size":33653,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.1.1.tgz"},"_npmUser":{"name":"mhchem","email":"noreply-npm@MartinHensel.de"},"directories":{},"maintainers":[{"name":"mhchem","email":"noreply-npm@MartinHensel.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mhchemparser_4.1.1_1625549365616_0.4773157468630407"},"_hasShrinkwrap":false,"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","publish_time":1625549365771,"_cnpm_publish_time":1625549365771,"dist-tags":{"latest":"4.2.1"}}