Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "commands/get"

Index

Functions

Functions

Const get

  • get(url: string, filename?: string, dest?: string): Promise<Object | void>
  • Download a resource from the web

    Parameters

    • url: string

      URL of the resource to be downloaded

    • Default value filename: string = "file"

      Name of the file to be stored. Defaults to "file"

    • Default value dest: string = __dirname

      Path to store the file. Defaults to the current directory.

    Returns Promise<Object | void>

    Either resolves with an object containing fullFilename and destination or rejects with an error

Generated using TypeDoc