@karmaniverous/jeeves
    Preparing search index...

    Function runScript

    • Wrap a script's main function with crash handling. On uncaught errors, appends to _crash.log in crashDir and exits.

      Parameters

      • name: string

        Script identifier for the crash log.

      • fn: () => void | Promise<void>

        Main function to execute (sync or async).

      • crashDir: string = ...

        Directory for crash logs (default: current working directory).

      Returns void