UNPKG

curseforge-v2

Version:
35 lines (23 loc) 804 B
# 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: ```bash $ 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 ```javascript async function getFeaturedMods() { const client = new CFV2Client({ apiKey: 'YOUR_API_KEY' }); const result = await client.getFeaturedMods({ gameId: 1, gameVersionTypeId: CF2WowGameVersionType.Retail, excludedModIds: [], }); } ```