ChemPare Documentation - v0.0.0
    Preparing search index...

    Variable SUPERSCRIPTSConst

    SUPERSCRIPTS: { [key: string]: string } = ...

    A mapping of regular characters to their Unicode superscript equivalents. Used for converting numbers and basic mathematical symbols to superscript format. Commonly used for exponents, powers, and scientific notation.

    Type declaration

    • [key: string]: string
    SUPERSCRIPTS["2"] // Returns "²"
    SUPERSCRIPTS["3"] // Returns "³"

    // Usage in strings
    const squared = "x" + SUPERSCRIPTS["2"] // Returns "x²"
    const scientific = "1.2 × 10" + SUPERSCRIPTS["3"] // Returns "1.2 × 10³"