Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Result

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Result(cmd: string, code: number, options?: Options): Result

Properties

cmd

cmd: string = ""

code

code: number = 0

err

killed

killed: boolean = false

stderr

stderr: string = ""

stdout

stdout: string = ""

Methods

parse

Private strip

  • strip(str: string): string
  • Result#strip will do the following:

    • Remove the last new line symbol from the string (always)
    • Strip new lines (optional, see options)
    • Strip colors (optional, see options)

    Acknowledgments:

    • StripColorCodes - MIT License

    Parameters

    • str: string

    Returns string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc