jamsinclair / jSquash

Browser & Web Worker focussed wasm bundles derived from the Squoosh App.
Apache License 2.0
222 stars 14 forks source link

Basic Node.js Support #38

Closed jamsinclair closed 10 months ago

jamsinclair commented 10 months ago

The library was intentionally built for the browser and web browsers.

Theoretically Node.js support should be possible, although I won't go out of my way to make this a core feature.

The main blockers I have found from experimentation:

jamsinclair commented 10 months ago

I've fixed the import extensions and polyfilled ImageData in #40.

Users will still need to manually read and compile the Wasm modules themselves.

This will be available from the following published versions: -@jsquash/avif@1.2.0+ -@jsquash/jpeg@1.3.0+ -@jsquash/jxl@1.1.0+ -@jsquash/oxipng@2.1.0+ -@jsquash/png@2.2.0+ -@jsquash/resize@1.1.0+ -@jsquash/webp@1.3.0+