0.0.5 • Published 8 months ago

@openmeteo/file-format-wasm v0.0.5

Weekly downloads
-
License
GPL-2.0-only
Repository
-
Last release
8 months ago

Open-Meteo File-Format-Wasm

WebAssembly bindings for the Open-Meteo File Format.

Overview

This package provides WebAssembly bindings to the OmFileFormat C library, enabling efficient reading of OmFile data in web browsers and Node.js environments. It is designed to be used by the @openmeteo/file-reader package, but can also be used independently.

Features

  • Direct WebAssembly bindings to the C implementation of OmFileFormat
  • High-performance data access
  • ES module format
  • Browser and Node.js compatibility

Installation

npm install @openmeteo/file-format-wasm

Usage

import { OmFileFormat } from '@openmeteo/file-format-wasm';

// Initialize the WASM module
const module = await OmFileFormat.default();

// Use the raw WASM functions
const headerSize = module._om_header_size();

Building from Source

Prerequisites

  • Docker (for building the WebAssembly component)

Build Steps

# Clone the repository
git clone --recursive https://github.com/open-meteo/typescript-omfiles.git

# Build using Docker
docker pull emscripten/emsdk
npm run build:wasm

License

This code depends on TurboPFor and open-meteo code; their license restrictions apply.

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

9 months ago

0.0.1

9 months ago