This TypeScript library facilitates the conversion among Unicode characters, their codepoints, and corresponding LaTeX/BibTeX commands. For instance:
α
->U+03B1
α
->\textalpha
U+03B1
->α
U+03B1
->\textalpha
.\textalpha
->α
\textalpha
->U+03B1
Initially, this library was designed to assist with the conversion of content within BibTeX files. However, its utility extends to any scenario requiring conversion between Unicode and LaTeX/BibTeX Unicode character commands.
Should you encounter any issues, missing or incorrect mappings, please file an issue and/or create a fork and submit a pull request via the GitHub repository.