Class Util

A general set of utilities. These are intentionally poorly documented, as they serve almost no usefulness to outside developers.

Hierarchy

  • Util

Constructors

Properties

BASE64URL_REGEX: RegExp = ...

Methods

  • Parameters

    • img: string | Buffer

    Returns string

  • Parameters

    • url: string
    • Optional format: "jpg" | "jpeg" | "png" | "webp" | "gif"
    • Optional size: number

    Returns string

  • Parameters

    • file: Buffer
    • len: number = 4

    Returns string