ChemPal Documentation - v1.6.0
    Preparing search index...

    Function exposeDebugApi

    • Attaches the chemistry helper API to window.chempal so the resolvers can be exercised from the browser devtools console. Intended for dev/non-production builds only — the caller gates this behind IS_DEV_BUILD so it is tree-shaken out of production bundles.

      Returns void

      Nothing; mutates the global window

      exposeDebugApi();
      // In the console: await window.chempal.resolveSmiles("CCO")
      export function exposeDebugApi(): void {
      window.chempal = chempal;
      printDebug('%cChemPal debug helpers ready — run chempal.help()', 'color:#6cf;font-weight:bold');
      }