ChemPare Documentation - v0.0.0
    Preparing search index...

    Function getCASByName

    • Gets the CAS of a chemical using the name from the Cactus API.

      Parameters

      • name: string

        The chemical name to lookup

      Returns Promise<Maybe<`${string}-${string}-${string}`>>

      The CAS number of the chemical

      getCASByName("Acetic Acid")
      // Returns '79-11-8'
      getCASByName("Acide chloracetique")
      // Returns '79-11-8'
      getCASByName("adsfasfd")
      // Returns undefined