{"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":{"integrity":"sha512-rFj6nGMLJQQ0WcDw3j4LY/kWCq1EftcsarQWnDg38U47XMR36Tlda19WsN4spHr0Qc9Wn4oj6YtvXuwVnOKC/g==","shasum":"db204c394c46c0070e115270a7e45c15b5f0c2f5","tarball":"http://registry-npm.ywwl.com/mhchemparser/download/mhchemparser-4.1.0.tgz","fileCount":9,"unpackedSize":179442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgosVXCRA9TVsSAnZWagAA9XMP/RadtHGjaHbj8RWSK0Zi\nK7o1p2MP+emIhedaeyuLquphdWPrfmJ40GBb3K7StGmQ61SyXT1unH2UKrdM\nlxNOUHNlqo/sG/lgGnx/9sTvUMmngyQgCAo5Fhf06/A3CNPwb5HOSNq+Y3ff\njUboWvVBPmqlSx+ueOsPC+krCF18HXvi75PoaEM3DQ20EfiripL77FhTc7HY\nvAj3k5jv+NysZ72QOm1kDnv8rLy1doxpIOEOtVC1YYhqd8wfiZfIT/p7wuPu\nTCbjV6ldtLawFcmepYmuoDMNPR6kjSl3/QaIwgeoMbfwXWORZ6c/HqCMOISu\n/UpSqOi+YHuIVgRyNszyAQ+KsC4pb6lUMZO8VRDPq4W2quaCKL9dDbszdZnp\niUlRXCJ2XFawm7oVCgcDRIscQkO9zQu18qGOzgZqWtQ0FJ/o/FL+k2md/05y\nJGm7G4sKmxjwdt/d2DIKZbDBRjzi0JHw7RZ7qKvTIKovShMi/X4aILxQ/dR1\nA7oRxdDLC0FSaZYAN2xsECNiAYmvmzjCDhksdmLKAGAtcVWuH+nagTkZ6phF\nLI1Fn1xeAVAuTRwBtLeGQRfgyXC2jVLfwXd22dIf4/OR1G2rl2dYfOcouA/y\nDoHLjcwRNu2nUd7fnmMp3NpkY1tNAXCozKOlypK0O1maeP7TqemFp4U3iTg9\nmKso\r\n=m7J3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEONKtPy9sQJfCZ4FOnCdklTvILce0qXu2NdHuLBADZAIhAJpVhm45/bltizRyr3O1UJAsoofHUa164iver9aR4cDm"}],"size":33884,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.1.0.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.0_1621280087513_0.8822446942341375"},"_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":1621280087629,"_cnpm_publish_time":1621280087629,"dist-tags":{"latest":"4.2.1"}}