modrinth-api

1.0.0 • Public • Published

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);
});

Readme

Keywords

Package Sidebar

Install

npm i modrinth-api

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

5.63 kB

Total Files

5

Last publish

Collaborators

  • vikbor5342