Class Kutt

See

https://docs.kutt.it

Example

const kutt = new Kutt();

Hierarchy

  • Kutt

Constructors

Properties

Methods

Constructors

Properties

#config: ConfigI = ...

Methods

  • Gets instance config.

    Example

    const api = kutt.get("api");
    

    Type Parameters

    Parameters

    • config: Config

    Returns ConfigI[Config]

  • Sets instance config.

    Example

    kutt = kutt.set("api", , "https://kutt.it/api/v2");
    

    Example

    kutt = kutt.set("api", , "https://kutt.it/api/v2")
    .set("timeout", 1e4);

    Type Parameters

    Parameters

    • config: Config
    • value: ConfigI[Config]

    Returns Kutt

  • Gets default/global config.

    Example

    const api = Kutt.get("api");
    

    Type Parameters

    Parameters

    • config: Config

    Returns ConfigI[Config]

  • Sets default/global config.

    Example

    Kutt.set("api", , "https://kutt.it/api/v2");
    

    Example

    Kutt.set("api", , "https://kutt.it/api/v2")
    .set("timeout", 1e4);

    Type Parameters

    Parameters

    • config: Config
    • value: ConfigI[Config]

    Returns typeof Kutt

Generated using TypeDoc