<script src="./node_modules/war3-model/dist/war3-model.browser.js"></script>
<script>
console.log(war3model.parseMDL('...'));
</script>
Also there is typings for browser:
// tsconfig.json
{
"include": [
"node_modules/war3-model/dist/war3-model.browser.d.ts",
...
]
}