The CLI is written for Bun. The parseVmap library will work with either Bun or Node.
If you want to read about how this library came about, click here.
In CS:GO, you could extract place names from maps by parsing the nav file. In 2, place names are stored as env_cs_place entities.
First, decompile your map with Source 2 Viewer. We need the entire map decompiled, entities and all. Don't change the folder structure after decompile.
Import the vmap file as a string. Call parseVMap with that string.
import parseVMap from 'cs2-vmap-tools';
const vmap = parseVMap(/* string here */)bun cli.js --input=".\de_vertigo.vmap"bun add cs2-vmap-tools