krapio
Library referenceClasses

ModsApi

GET /api/mods/*: the mod list and single mods

Constructors

Constructor

new ModsApi(client): ModsApi;

Parameters

ParameterType
clientKrunkerClient

Returns

ModsApi

Methods

get()

get(modName): Promise<Mod>;

GET /api/mods/:modname

Parameters

ParameterType
modNamestring

Returns

Promise<Mod>


list()

list(query?): Promise<Mods>;

GET /api/mods, 10 per page, most votes first

Parameters

ParameterType
query?Page

Returns

Promise<Mods>

On this page