The compound's CID
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}`;
}
Builds the URL of a compound's PubChem summary page from its CID.