@system-dynamics/xmutil

1.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @system-dynamics/xmutil

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

545 kB

Total Files

13

Last publish

Collaborators

  • bpowers