VMF Transpiler is a library for converting between Valve Map Format (VMF) used by the Hammer editor and JSON. Version 1.0.0, based on leops/vmfparser. It provides parse() and compile() functions for bidirectional conversion, with support for VMF-specific features like multiple values per key (converted to arrays). It is a lightweight utility for game development tooling involving Source Engine maps. Currently stable but single-version release with no published updates.
npm install vmf-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing parse and compile, converting a VMF string to a JSON object, and back to VMF string.
Handle output values that can be strings or arrays; check Array.isArray().
Use ast: true option to get an AST if order matters.
Write ambient declarations or use @ts-ignore.
Use import { parse } from 'vmf-transpiler' instead of import parse from 'vmf-transpiler'.Run npm install vmf-transpiler, or check that the package name is correct.
Ensure input to parse() is VMF format, not JSON.
No dependency data recorded yet.