curseforge-v2
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

curseforge-v2

CurseForge V2 API library primarily typed to support usage with WoW but should work for any of their games.

Source: https://docs.curseforge.com/#getting-started

Installing

Using npm:

$ npm install curseforge-v2

Setup

The client requires a CurseForge API key. You can learn more about getting a key here: https://support.curseforge.com/en/support/solutions/articles/9000208346-about-the-curseforge-api-and-how-to-apply-for-a-key

Example

Getting featured addons

async function getFeaturedMods() {
  const client = new CFV2Client({ apiKey: 'YOUR_API_KEY' });

  const result = await client.getFeaturedMods({
    gameId: 1,
    gameVersionTypeId: CF2WowGameVersionType.Retail,
    excludedModIds: [],
  });
}

Readme

Keywords

Package Sidebar

Install

npm i curseforge-v2

Weekly Downloads

14

Version

1.3.0

License

ISC

Unpacked Size

36.1 kB

Total Files

8

Last publish

Collaborators

  • zakrn