npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mcmodmanager

v1.0.3

Published

Keep your Minecraft Forge mods up to date using a simple CLI.

Downloads

7

Readme

Latest version Last updated npm downloads

ModManager

Keep your CurseForge Minecraft mods up to date with ModManager, the easy-to-use CLI command.

Install

ModManager is available on npm:

Install it globally using npm install -g mcmodmanager.

Usage

CLI

ModManager must be initialised inside your mods folder.

Do this by first by opening the command line and entering your mods directory (which is usually under %appdata%\.minecraft on Windows) using cd:

cd %appdata%\.minecraft\.mods

The above command (or your equivalent) must always be done before you use any ModManager commands.

After you have cd'd into your mods folder, set up a ModManager configuration file (mods.json) with the Minecraft version you will be using (1.16 in this example):

modmanager setup 1.16

Now you can install whatever mods you want from CurseForge. To do so, simply go to the CurseForge page of your mod and copy its Project ID found on the right-hand side of the page. Then enter this project ID (238222 in this example) into the modmanager install command:

modmanager install curse 238222

This will install the version of mod 238222 that corresponds to your configured Minecraft version in mods.json (in this case, 1.16), given that there is a 1.16 version of the mod available.

If successful, your mods.json file should look something like this:

{
  "version": {
    "minecraft": "1.16"
  },
  "mods": {
    "238222": {
      "name": "Just Enough Items (JEI)",
      "host": "curseforge",
      "url": "https://www.curseforge.com/minecraft/mc-mods/jei",
      "version": "jei-1.16.4-7.6.0.56"
    }
  }
}

To automatically update all mods in mods.json to their latest versions, use modmanager update:

modmanager update

To uninstall a certain mod and remove it from mods.json, use modmanager remove <modID>; in this case, mod 238222:

modmanager remove 238222

Node

ModManager has Node exports of all above CLI commands:

  • setup(mcVersion)
    • Initialise a directory with a mods.json file and configure it to use mods for a given Minecraft version (e.g., 1.16).
  • install(host, modID)
    • Install a mod from a given host (such as curseforge) from a given mod ID (e.g., 123456).
  • remove(modID)
    • Remove a mod given an existing mod ID (e.g., 123456).
  • update()
    • Install the latest version of all mods.