A JavaScript reader for the Open-Meteo File Format!
This library provides JavaScript/TypeScript bindings to the OmFileFormat C library through WebAssembly. It enables efficient reading of OmFile data in web browsers and Node.js environments.
- Read OmFile format (scientific data format optimized for meteorological data)
- High-performance data access through WebAssembly
- Browser and Node.js compatibility
- TypeScript type definitions included
- Node.js 16+
- Docker (for building the WebAssembly component)
We compile the project using the Emscripten Docker container
-
Clone the repository with submodules:
git clone --recursive https://github.com/terraputix/omfiles-js.git cd omfiles-js
-
Install dependencies and build the WebAssembly and TypeScript code:
docker pull emscripten/emsdk npm install npm run build # This will use the emscripten/emsdk Docker container to build the WebAssembly module!
-
Run the tests:
npm run test
This code depends on TurboPFor and open-meteo code their license restrictions apply.
Contributions are welcome! Please feel free to open an Issue or to submit a Pull Request.