1.1.3 • Published 3 years ago
@system-dynamics/xmutil v1.1.3
convert Vensim mdl files to XMILE
This is Bob Eberlein's xmutil project compiled to WebAssembly and wrapped in the simplest possible TypeScript wrapper (and also usable from plain JavaScript).
It is usable both the browser -- it should be easily adaptable to node as well (patches welcome!).
Usage
import { convertMdlToXmile } from '@system-dynamics/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
@system-dynamics/xmutil is offered under the MIT license for consistency with the C++ xmutil.