Skip to content

lukesrw/vmfunparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VMFUnParser

VMF is the format used by the Hammer editor to store maps before their compilation. Since VMF has a syntax similar to JSON, leops decided to write a VMF parser in JavaScript and I decided to write a VMF unparser to turn JSON back into VMF. I have some idea why.

Usage

The module exports a single vmfunparser(input) function. The input is a JSON object source object.

const fs = require("fs");

const vmfunparser = require("vmfunparser");

// ...take output from vmfparser
let vmf_as_json = {};

// ...now open in Hammer
fs.writeFileSync("map.vmf", vmfunparser(vmf_as_json));

About

A small JSON to VMF unparser

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •