@hebcal/rest-api
    Preparing search index...

    Function eventToClassicApiObject

    • Converts a single Hebcal event to a classic Hebcal.com JSON API object

      Parameters

      • ev: Event

        the event to convert

      • options: RestApiOptions

        controls locale, tracking parameters, and which optional fields (heDateParts, ev) are included

      • leyning: boolean = true

        false to omit Torah/Haftarah readings

      Returns ClassicApiItem

      the rendered API item