This package has been deprecated

Author message:

Use @xmcl/mod-parser

@xmcl/forge

1.1.1 • Public • Published

Forge Module

npm version npm Build Status

This is a sub-module belong to minecraft-launcher-core module. You can still use this individually.

Usage

Forge Mod Parsing

Read the forge mod metadata, including @Mod annotation and mcmods.info json data.

    import { Forge } from "@xmcl/forge";
    const forgeModJarBuff: Buffer;
    const metadata: Forge.MetaData[] = Forge.readModMetaData(forgeModJarBuff);

    const modid = metadata[0].modid; // get modid of first mods

Read the forge mod config file (.cfg)

    const modConfigString: string;
    const config: Forge.Config = Forge.Config.parse(modConfigString);
    const serializedBack: string = Forge.Config.stringify(config);

Package Sidebar

Install

npm i @xmcl/forge

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

71.1 kB

Total Files

7

Last publish

Collaborators

  • ci010