Options
All
  • Public
  • Public/Protected
  • All
Menu

boxrec

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

Stance

Stance: "orthodox" | "southpaw"

Variables

Const $

$: CheerioStatic = cheerio.load("<div></div>")

Const townRegionCountryRegex

townRegionCountryRegex: RegExp = /\?country=([A-Za-z]+)(?:(?:&|&amp;)region=([A-Za-z0-9]*))?(?:(?:&|&amp;)town=(\d+))?/

Functions

changeToCamelCase

  • changeToCamelCase(str: string): string
  • Changes a string to camelCase

    example

    "foo bar" becomes "fooBar"

    Parameters

    • str: string

    Returns string

convertFractionsToNumber

  • convertFractionsToNumber(fraction: string): number
  • Converts fractional symbols into decimals

    Parameters

    • fraction: string

    Returns number

getColumnData

  • getColumnData($: CheerioStatic, nthChild: number, returnHTML?: boolean): string
  • Used to retrieve data from individual table columns

    Parameters

    • $: CheerioStatic

      requires that the CheerioApi object be passed in

    • nthChild: number

      the column number starting at 1

    • Default value returnHTML: boolean = true

      if true, the HTML will be returned, otherwise just text with HTML removed

    Returns string

Const stripCommas

  • stripCommas(str: string): string
  • Strips the commas out of a string. Used for strings that are large numbers

    Parameters

    • str: string

    Returns string

trimRemoveLineBreaks

  • trimRemoveLineBreaks(str: string): string
  • Removes whitespace at the start and end of the string, remove line breaks and removes occurrences where multiple spaces occur

    Parameters

    • str: string

    Returns string

Object literals

Const beltOrganizations

beltOrganizations: object

BoxRec

BoxRec: null = null

IBF

IBF: null = null

IBO

IBO: null = null

WBA

WBA: null = null

WBC

WBC: null = null

WBO

WBO: null = null

Const weightDivisions

weightDivisions: object

bantamweight

bantamweight: BoxrecBelts = beltOrganizations

cruiserweight

cruiserweight: BoxrecBelts = beltOrganizations

featherWeight

featherWeight: BoxrecBelts = beltOrganizations

flyweight

flyweight: BoxrecBelts = beltOrganizations

heavyweight

heavyweight: BoxrecBelts = beltOrganizations

lightFlyweight

lightFlyweight: BoxrecBelts = beltOrganizations

lightHeavyweight

lightHeavyweight: BoxrecBelts = beltOrganizations

lightweight

lightweight: BoxrecBelts = beltOrganizations

middleweight

middleweight: BoxrecBelts = beltOrganizations

minimumweight

minimumweight: BoxrecBelts = beltOrganizations

superBantamweight

superBantamweight: BoxrecBelts = beltOrganizations

superFeatherweight

superFeatherweight: BoxrecBelts = beltOrganizations

superFlyweight

superFlyweight: BoxrecBelts = beltOrganizations

superLightweight

superLightweight: BoxrecBelts = beltOrganizations

superMiddleweight

superMiddleweight: BoxrecBelts = beltOrganizations

superWelterweight

superWelterweight: BoxrecBelts = beltOrganizations

welterweight

welterweight: BoxrecBelts = beltOrganizations

Generated using TypeDoc