node-version-call
    Preparing search index...

    Function callSync

    • Call a function synchronously in a specific Node version. Installs the version if not already present.

      Parameters

      • version: string

        Version spec ('v18.0.0', '>=18', '20')

      • workerPath: string

        Path to the file to execute

      • Optionaloptions: CallOptions

        Execution options

      • ...args: unknown[]

        Arguments to pass to the worker

      Returns unknown

      The result from the worker. Throws on error.