xmutil

xmutil bindings for JavaScript

Usage no npm install needed!

<script type="module">
  import xmutil from 'https://cdn.skypack.dev/xmutil';
</script>

README

xmutil.js - convert Vensim mdl files to XMILE

This is Bob Eberlein's xmutil project compiled to Web Assembly and wrapped in the simplest possible TypeScript wrapper.

Usage

import { convertMdlToXmile } from 'xmutil';

const args = process.argv.slice(2);
const mdlFile = fs.readFileSync(args[0], 'utf-8');

let xmile = await convertMdlToXmile(mdlFile, false);
console.log(xmile);

License

xmutil.js is offered under the MIT license (as is Bob's original xmutil).