Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "commands/gunzip"

Index

Functions

Functions

Const gunzip

  • gunzip(source: string, filename?: string, destination?: string, password?: string): Promise<Object | void>
  • Extract a local file.

    Parameters

    • source: string

      The source file to be extracted

    • Default value filename: string = "file"

      The name of the extracted file. Defaults to "file.extension"

    • Default value destination: string = __dirname

      Where to store the extracted file. Defaults to the current directory

    • Optional password: string

      Optional password to decrypt the extracted file

    Returns Promise<Object | void>

    Either resolves with an object containing fullFilename and destination of the extracted file or rejects with an error

Generated using TypeDoc