Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@openmeteo/file-format-wasm

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openmeteo/file-format-wasm

WebAssembly bindings for OmFileFormat

latest
npmnpm
Version
0.0.11
Version published
Weekly downloads
60
-9.09%
Maintainers
3
Weekly downloads
 
Created
Source

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.

Keywords

file-format

FAQs

Package last updated on 30 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts