Skip to content

Non-official Javascript/Typescript bindings for the Curseforge API

License

Notifications You must be signed in to change notification settings

guillaumearm/curseforge

Repository files navigation

Curserforge API bindings

This is the non-official Javascript/Typescript bindings for the Curseforge API

Warning: This is WIP project, not all bindings are supported.

Full documentation

Link to the latest documentation

Installation

npm install --save curseforge

or

yarn add -D curseforge

Usage

import * as curseforge from 'curseforge';
import type { MinecraftVersionInfo } from 'curseforge';

curseforge.fetch.MinecraftVersionInfo('1.16.5').then((mcInfo: MinecraftVersionInfo) => {
  console.log('=>', mcInfo);
});

Other informations

API url: https://addons-ecs.forgesvc.net/api/v2

API official documentation: https://curseforgeapi.docs.apiary.io/