Methods
Static JSONtoString
- JSONtoString(obj: any): string
-
Parameters
Returns string
Static StringtoJSON
- StringtoJSON(str: any): object
-
Parameters
Returns object
Static checkBranch
-
Parameters
Returns boolean
Static checkTime
- checkTime(updated: any, days?: number): boolean
-
Parameters
-
updated: any
-
Default value days: number = 7
Returns boolean
Static checkUser
-
Parameters
Returns boolean
Static decryptValue
- decryptValue(str: string): string
-
Parameters
Returns string
Static encryptValue
- encryptValue(str: string): string
-
Parameters
Returns string
Static generateUniqueId
- generateUniqueId(): string
Static getGitEnv
-
Parameters
Returns Promise<any>
Static getLastItem
- getLastItem(array: any[]): any
Static getObjectValue
- getObjectValue(obj: object): object
-
Parameters
Returns object
Static getRepositoryFullName
- getRepositoryFullName(url: string): string
-
Parameters
Returns string
Static getStringValue
- getStringValue(str: string): string
-
Parameters
Returns string
Static getTypeAndMode
- getTypeAndMode(str: string): any
Static parseYAMLFile
- parseYAMLFile(fileContent: string): Promise<any>
-
Parameters
Returns Promise<any>
Static render
- render(template: any, ctx: any): string
-
Parameters
Returns 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[]
-
data: any
-
Default value separator: string = ","
Returns string[]
Static writeFileSync
- writeFileSync(fileName: string, fileContent: string): Promise<boolean>
-
Parameters
-
fileName: string
-
fileContent: string
Returns Promise<boolean>
Generate a unique String Id https://gist.github.com/gordonbrander/2230317