Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExifToolTask<T>

Type parameters

  • T

Hierarchy

  • Task<T>
    • ExifToolTask

Index

Constructors

constructor

Properties

Readonly args

args: string[]

Readonly command

command: string

Readonly errors

errors: string[] = []

Readonly parser

parser: Parser<T>

Accessors

pending

  • get pending(): boolean
  • Returns boolean

promise

  • get promise(): Promise<T>
  • Returns Promise<T>

    the resolution or rejection of this task.

state

  • get state(): string
  • Returns string

stderr

  • get stderr(): string
  • Returns string

stdout

  • get stdout(): string
  • Returns string

Methods

addError

  • addError(err: string): void

onStderr

  • onStderr(buf: string | Buffer): void
  • Parameters

    • buf: string | Buffer

    Returns void

onStdout

  • onStdout(buf: string | Buffer): void
  • Parameters

    • buf: string | Buffer

    Returns void

Protected Abstract parse

  • parse(input: string, error?: Error): T

reject

  • reject(error: Error): void
  • This is for use by BatchProcess only, and will only be called when the process has errorred after N retries

    Parameters

    • error: Error

    Returns void

resolve

  • resolve(stdout: string, stderr: string, passed: boolean): Promise<void>
  • This is for use by BatchProcess only, and will only be called when the process is complete for this task's command

    Parameters

    • stdout: string
    • stderr: string
    • passed: boolean

    Returns Promise<void>

toString

  • toString(): string
  • Returns string

Static renderCommand

  • renderCommand(args: string[]): string

Generated using TypeDoc