ChemPal Documentation - v1.17.0
    Preparing search index...
    • Builds the NIST WebBook compound-page URL for a CAS number.

      Parameters

      • cas: string

        A CAS registry number such as 67-64-1.

      Returns string

      The WebBook page URL.

      nistWebbookUrl('67-64-1');
      // "https://webbook.nist.gov/cgi/cbook.cgi?ID=C67641"
      export function nistWebbookUrl(cas: string): string {
      return `https://webbook.nist.gov/cgi/cbook.cgi?ID=C${cas.replace(/-/g, '')}`;
      }