svsmate - v1.1.1
    Preparing search index...

    Downloads arbitrary files with concurrency control.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Downloads a single file to savePath.
      Intermediate folders are created automatically.

      Parameters

      • url: string
      • savePath: string

      Returns Promise<boolean>

      true on success, false on HTTP error.

    • Downloads multiple files concurrently.

      Parameters

      • items: { path: string; url: string }[]

        Array of { url, path }.

      • OptionalonError: (item: { path: string; url: string }) => void

        Optional callback when a download fails.

      Returns Promise<void>