Skip to main content

One post tagged with "WebAssembly"

WebAssembly builds and browser usage

View All Tags

Img2Num JS 0.4.2: One npm Package, Five Purpose-Built WebAssembly Bundles

· 12 min read
Ryan Millard
Img2Num Author

Hero

Img2Num's JavaScript package v0.4.2 is out on npm, and it's the biggest change to the npm distribution since we first shipped WebAssembly builds.

In short, instead of one compromise bundle, the package now ships five purpose-built bundles, each backed by its own Emscripten glue variant, and getting started no longer requires knowing anything about Emscripten - regardless of whether you're in a bundled web app, a plain <script> tag, or Node.js.

If you're new here: Img2Num is a C++-based library for converting raster images into clean SVGs, with bindings for C, Python, and JavaScript. This release is about the JavaScript and WebAssembly side of the library - the C++ core, C API, and Python package are unchanged.