Skip to content

Vikbor5342/modrinth-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

modrinth-api

Installation

npm install modrinth-api

Examples

Get info about a mod or modpack

const modrinth = require("modrinth-api");

modrinth.getMod("Mod or modpack id/slug").then((result) => {
    console.log(result);
});

Search for mods or modpacks

const modrinth = require("modrinth-api");

modrinth.getSearch({ limit: "2", offset: "2" }).then((result) => {
    console.log(result);
});

More info on search (Version is not available here.)

Get all versions from mods or modpacks

const modrinth = require("modrinth-api");

modrinth.getModVersions("Mod or modpack id/slug").then((result) => {
    console.log(result);
});

Get all versions from mods or modpacks

const modrinth = require("modrinth-api");

modrinth.getModVersion("Version id").then((result) => {
    console.log(result);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published