JavaScript#

Installing MUSICA#

The JavaScript API is available as an npm package:

npm install @ncar/musica

To build from source with WebAssembly support:

git clone https://github.com/NCAR/musica.git
cd musica
npm install
npm run build

Note

The JavaScript API is designed specifically for use in web applications (particularly the MUSICA box model web app) and exposes only MICM gas-phase chemistry.

Verifying the installation#

import { getVersion } from '@ncar/musica';
console.log(getVersion());

Next steps#