hdf5-wasm-tools
v0.1.0
Published
Tools from the HDF5 library compiled to WebAssembly
Downloads
11
Readme
HDF5 WASM Tools
This package provides command-line tools for working with HDF5 files, compiled to WebAssembly (WASM).
These are redistributions of tools originally provided by The HDF Group as part of the HDF5 library, compiled to WASM for use in JavaScript environments.
This package is part of the larger libhdf5-wasm project which provides WASM-compiled HDF5 libraries for re-use in other projects
These tools have no system dependencies:
- statically linked to a WASM-compiled version of the HDF5 library
- do not require a system installation of HDF5 to run.
Requirements
- Node.js or Bun runtime
- Note: Deno is not currently supported
Installation
npm install hdf5-wasm-toolsUsage
After installation, the tools can be run directly from the command line, e.g.
npx h5dump myfile.h5npx h5repack -f GZIP -l 5 input.h5 output.h5Compression Filters
Built-in Support: GZIP and SZIP compression filters are compiled in and available by default.
Additional Filters: To enable support for additional compression filters (such as LZF, Blosc, etc.), install the companion package h5wasm-plugins :
npm install h5wasm-pluginsOnce installed in the same project, the tools will automatically detect and use the available compression filters.
