ConstThe SMILES string to look up
The matching CID, or undefined if PubChem has no match
await getCidBySmiles('CC(=O)Oc1ccccc1C(=O)O');
// Returns: 2244
export const getCidBySmiles: (smiles: string) => Promise<PubChemCID | undefined> = withTtlCache(
getCidBySmilesUncached,
{ namespace: 'cidBySmiles' },
);
Resolves a SMILES string to its PubChem CID. Results are cached for three days.