Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/target/id"

Index

Variables

Const camelCaseRegex

camelCaseRegex: RegExp = /(\S+)\s*/g

Const jsVariableRegex

jsVariableRegex: RegExp = /^[a-zA-Z_]\w+/

Const sanitizeRegex

sanitizeRegex: RegExp = /(^[0-9]+)|(\W)/g

Functions

capitalize

  • capitalize(s: string): string

id

  • id(value: string): string

parse

  • parse(input: string | undefined, fallback: string): string
  • Parameters

    • input: string | undefined
    • fallback: string

    Returns string