Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Const props

props: void = ...

Functions

Const capitalFirstLetter

  • capitalFirstLetter(value: string): string

Const capitalize

  • capitalize(input: string): string

Const checkPostCode

  • checkPostCode(toCheck: string): Optional<string>

Const cjk

  • cjk(value: string): string[]

Const combinations

  • combinations(value: string): string[]

Const delim

  • delim(value?: string, num?: number): string
  • Parameters

    • value: string = '>'
    • num: number = 80

    Returns string

Const doubleQuote

  • doubleQuote(str: string, allowVars?: boolean): string
  • Parameters

    • str: string
    • allowVars: boolean = false

    Returns string

Const encode

  • encode(value: string, delta: number): string

Const encoder

  • encoder(value: string, encoder?: BiProcessor<string, number, string>): string

Const escape

  • escape(value: string): string

Const escape2

  • escape2(text: string): string

Const escapeAscii

  • escapeAscii(value: string): string

Const escapeControl

  • escapeControl(value: string): string

Const escapeHtml

  • escapeHtml(value: string): string

Const escapeRegExp

  • escapeRegExp(value: string): string

Const escapeRegExp2

  • escapeRegExp2(value: string): string

Const escapeSymbols

  • escapeSymbols(value: string): string

Const extractAttachmentsFromString

  • extractAttachmentsFromString(content: string, regex?: RegExp): string[]
  • Parameters

    • content: string
    • regex: RegExp = ...

    Returns string[]

Const filterBy

  • filterBy(value: string, regex?: RegExp): string
  • Parameters

    • value: string
    • regex: RegExp = ...

    Returns string

Const format

  • format(n: number): string

Const formatNumber

  • formatNumber(num: number, precision: number): string

Const generateRandomHex

  • generateRandomHex(): string

Const generateSymbol

  • generateSymbol(): string

Const getFunctionBody

  • getFunctionBody(func: any): string
  • Returns string representation of function body

    Parameters

    • func: any

      Function to get body of

    Returns string

    Function body

Const getPostCode

  • getPostCode(value: string): Optional<string>

Const getProjectId

  • getProjectId(value: any): string

Const getRomanNotation

  • getRomanNotation(num: number): string

Const guid

  • guid(): string

Const guidGenerator

  • guidGenerator(): string

Const hashCode

  • hashCode(str: string): string

Const htmlEncode

  • htmlEncode(value: string): string

Const htmlText

  • htmlText(value: string): string

Const isBlankString

  • isBlankString(value: string): boolean

Const isNonEmptyString

  • isNonEmptyString(value: string): boolean

Const isTagNameValid

  • isTagNameValid(name: string): boolean

Const join

  • join(symbols: string | string[], delim?: string): string
  • Parameters

    • symbols: string | string[]
    • delim: string = ','

    Returns string

Const joinBy

  • joinBy(value: string, delim?: string): string
  • Parameters

    • value: string
    • delim: string = ' '

    Returns string

Const joinList

  • joinList(list: any[], joiner?: string): string

Const joiner

  • joiner(join: string, ...args: any[]): string

Const koi2unicode

  • koi2unicode(value: string): string

Const longestSequence

  • longestSequence(compareFunc: any, myEnum: string): { count: number; member: Optional<string> }

Const lowerCase

  • lowerCase(...args: string[]): string[]

Const matcher

  • matcher(value: string[], pattern?: string | RegExp): string[]
  • Parameters

    • value: string[]
    • pattern: string | RegExp = ...

    Returns string[]

Const notBlankOrElse

  • notBlankOrElse(value: string, defaultValue: string): string
  • Parameters

    • value: string
    • defaultValue: string

    Returns string

Const numFormat

  • numFormat(value: number, fraction?: number): string
  • Parameters

    • value: number
    • fraction: number = 2

    Returns string

Const packageName

  • packageName(value: string): string

Const pad

  • pad(num: number, size?: number, type?: string): string
  • Parameters

    • num: number
    • size: number = 2
    • type: string = '0'

    Returns string

Const padLeft

  • padLeft(value: string, length: number): string

Const parseIni

  • parseIni(value: string): Optional<{ fields: { name: string; value: string }[]; name: Optional<string> }[]>

Const parseJson

  • parseJson(value: string, defaultValue?: any): Optional<string>

Const parseNumber

  • parseNumber(value: string): undefined | null | RegExpExecArray
  • Parameters

    • value: string

    Returns undefined | null | RegExpExecArray

Const parseStyleObject

  • parseStyleObject<T>(style: any, oStyle: T): void
  • Type parameters

    • T

    Parameters

    • style: any
    • oStyle: T

    Returns void

Const parseStyleString

  • parseStyleString<T>(style: string, oStyle: T): void
  • Type parameters

    • T

    Parameters

    • style: string
    • oStyle: T

    Returns void

Const permutations

  • permutations(value: string): string[]

Const prefixAverages

  • prefixAverages(array: number[]): number[]

Const quote

  • quote(str: any, allowVars?: boolean): string

Const randomString

  • randomString(len?: number): string

Const randomString2

  • randomString2(func?: () => boolean): string
  • Parameters

    • func: () => boolean = ...
        • (): boolean
        • Returns boolean

    Returns string

Const randomizer

  • randomizer(options: string, prop: string): string[]

Const relativePos

  • relativePos(event: any, element: any): { x: number; y: number }
  • Parameters

    • event: any
    • element: any

    Returns { x: number; y: number }

    • x: number
    • y: number

Const removeChars

  • removeChars(str: string, remove: string): string

Const removeLines

  • removeLines(value: string): string

Const repeat

  • repeat(str: string, num: number): string

Const replaceAttachments

  • replaceAttachments(content: string, sources: [string, string][]): string
  • Parameters

    • content: string
    • sources: [string, string][]

    Returns string

Const replaceBy

  • replaceBy(regex: string | RegExp, value: string, replace?: string): string
  • Parameters

    • regex: string | RegExp
    • value: string
    • replace: string = ''

    Returns string

Const replacer

  • replacer(value: string[], pattern?: string | RegExp, encoder?: Processor<string, string>): string[]
  • Parameters

    • value: string[]
    • pattern: string | RegExp = ...
    • encoder: Processor<string, string> = ...

    Returns string[]

Const revisedRandId

  • revisedRandId(): string

Const separator

  • separator(num: number, delim?: string): string

Const sequencer

  • sequencer<T, U>(map: (value: T, index: number, array: T[]) => U, str: string): string
  • Type parameters

    • T: string

    • U: string

    Parameters

    • map: (value: T, index: number, array: T[]) => U
        • (value: T, index: number, array: T[]): U
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns U

    • str: string

    Returns string

Const serialMaker

Const shortenString

  • shortenString(str: string, func: Processor<string, string>): string

Const shortest

  • shortest(words: string[], word1: string, word2: string): number
  • Parameters

    • words: string[]
    • word1: string
    • word2: string

    Returns number

Const sortBy

  • sortBy(comparator: Optional<BiProcessor<{ index: number; value: string }, { index: number; value: string }, number>>, ...args: string[]): string[]
  • Parameters

    • comparator: Optional<BiProcessor<{ index: number; value: string }, { index: number; value: string }, number>>
    • Rest ...args: string[]

    Returns string[]

Const str2ab16

  • str2ab16(value: string): Uint16Array

Const str2ab8

  • str2ab8(str: string): Int8Array

Const stringify

  • stringify(obj: any, space?: number): string

Const stripComments

  • stripComments(code: string): string

Const substantiveLineCount

  • substantiveLineCount(value: string): number

Const tabExpand

  • tabExpand(value: string): string

Const tabUnexpand

  • tabUnexpand(value: string): string

Const tag

  • tag<T>(literals: T[], ...substitutions: any[]): string
  • Type parameters

    • T

    Parameters

    • literals: T[]
    • Rest ...substitutions: any[]

    Returns string

Const toInputName

  • toInputName(value: string, prefix?: string): string
  • Parameters

    • value: string
    • prefix: string = 'INPUT_'

    Returns string

Const toParamName

  • toParamName(value: string): string

Const toPathString

  • toPathString(pathArr: string[]): string

Const toSnakeCase

  • toSnakeCase(value: string, sep?: string): string

Const toString

  • toString(value: string | string[]): string

Const toUTF16

  • toUTF16(codePoint: number): string

Const trimmer

  • trimmer(...args: string[]): string[]

Const twoChar

  • twoChar(num: number): string

Const uniqueId

  • uniqueId(): string

Const win2unicode

  • win2unicode(value: string): string

Const wordWrap

  • wordWrap(value: string, width: number, brk: string, cut: boolean): Optional<string>

Const xor

  • xor(input: string, pass: string): string