Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pack/node/build/npmLogInterpreter"

Index

Variables

Const BeginMochaFailingTests

BeginMochaFailingTests: RegExp = /^\W*\d* failing$/

Const LogPrefix

LogPrefix: RegExp = /^.*\[(info |error|warn |debug)\] /

Const NpmFooterPrefix

NpmFooterPrefix: RegExp = /^npm ERR!/

Const StackTraceLine

StackTraceLine: RegExp = /^\W*at /

Functions

Const NpmLogInterpreter

  • NpmLogInterpreter(log: string): { message: string; relevantPart: string }

findTwoBlankLinesIndex

  • findTwoBlankLinesIndex(lines: string[]): number

lastOccurrenceOf

  • lastOccurrenceOf(re: RegExp, lines: string[]): string

recognizeMochaTest

recognizeNpmRunError

removeBlanksFromEnd

  • removeBlanksFromEnd(lines: string[]): string[]

removeNpmFooter

  • removeNpmFooter(lines: string[]): string[]

stripLogPrefix

  • stripLogPrefix(line: string): string

Generated using TypeDoc