Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.04 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.04 KB

@beequeue/gmd

npm npm bundle size node-current

A library for parsing and serializing GMD files for the MT Framework engine, more specifically for Monster Hunter: Generations Ultimate.

Largely based on the work in onepiecefreak3/GMDConverter.

Usage (CLI)

pnpm install -g @beequeue/gmd
gmd --help

The input can be a file, directory, or glob pattern.

By default the output will be written to the same directory as the input file.

--option can be used to change this to a specific directory.

gmd decode --output ./output path/to/files/**/*.gmd
gmd encode ./output/**/*

Usage

import { readFileSync } from "fs"
import { encodeGmd, decodeGmd } from "@beequeue/gmd"

const buffer = readFileSync("./somefile.gmd")
const json = decodeGmd(buffer)
const data = encodeGmd(json)