Options
All
  • Public
  • Public/Protected
  • All
Menu

urlmatch is an utility that extracts an user or a plurk's id from URL.

Index

Functions

Functions

plurk

  • plurk(url: string, decode: false): string | undefined
  • plurk(url: string, decode: true): number | undefined
  • Extracts plurk id from URL provided.

    Parameters

    • url: string

      Url to parse.

    • decode: false

      Should automatic converts base36 id to number?

    Returns string | undefined

  • Extracts plurk id from URL provided.

    Parameters

    • url: string

      Url to parse.

    • decode: true

      Should automatic converts base36 id to number?

    Returns number | undefined

user

  • user(url: string, decode: false): string | undefined
  • user(url: string, decode: true): number | undefined
  • Extracts user id from URL provided.

    Parameters

    • url: string

      Url to parse.

    • decode: false

      Should automatic converts base36 id to number?

    Returns string | undefined

  • Extracts user id from URL provided.

    Parameters

    • url: string

      Url to parse.

    • decode: true

      Should automatic converts base36 id to number?

    Returns number | undefined

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc