Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Utils

Hierarchy

  • Utils

Index

Methods

Static JSONtoString

  • JSONtoString(obj: any): string

Static StringtoJSON

  • StringtoJSON(str: any): object

Static checkBranch

Static checkTime

  • checkTime(updated: any, days?: number): boolean
  • Parameters

    • updated: any
    • Default value days: number = 7

    Returns boolean

Static checkUser

Static decryptValue

  • decryptValue(str: string): string

Static encryptValue

  • encryptValue(str: string): string

Static generateUniqueId

  • generateUniqueId(): string

Static getGitEnv

Static getLastItem

  • getLastItem(array: any[]): any

Static getObjectValue

  • getObjectValue(obj: object): object

Static getRepositoryFullName

  • getRepositoryFullName(url: string): string

Static getStringValue

  • getStringValue(str: string): string

Static getTypeAndMode

  • getTypeAndMode(str: string): any

Static parseYAMLFile

  • parseYAMLFile(fileContent: string): Promise<any>

Static render

  • render(template: any, ctx: any): string

Static renderHbs

  • renderHbs(filePath: string, dataSource?: any): string
  • Parameters

    • filePath: string
    • Default value dataSource: any = {}

    Returns string

Static replaceDefaultBranch

  • replaceDefaultBranch(defaultBranch: string, array: string[]): string[]
  • Parameters

    • defaultBranch: string
    • array: string[]

    Returns string[]

Static splitDirectoryPath

Static transformToArray

  • transformToArray(input: string | string[], data: any, separator?: string): string[]
  • Parameters

    • input: string | string[]

      string x-separated or string[]

    • data: any

      datasource for templating

    • Default value separator: string = ","

      comma by default

    Returns string[]

Static whichGitType

Static writeFileSync

  • writeFileSync(fileName: string, fileContent: string): Promise<boolean>
  • Parameters

    • fileName: string
    • fileContent: string

    Returns Promise<boolean>

Generated using TypeDoc