node-version-call
    Preparing search index...

    Function call

    • Call a function asynchronously 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. If last arg is a function, it's treated as callback.

      Returns unknown

      Promise if no callback, undefined if callback provided