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

    Function pubchemCompoundUrl

    • Builds the URL of a compound's PubChem summary page from its CID.

      Parameters

      Returns string

      The PubChem compound page URL

      pubchemCompoundUrl(180);
      // Returns: "https://pubchem.ncbi.nlm.nih.gov/compound/180"
      export function pubchemCompoundUrl(cid: PubChemCID): string {
      return `https://pubchem.ncbi.nlm.nih.gov/compound/${cid}`;
      }