@jsquash/jpeg
1.6.0 · 12 May 2025Apache-2.0697.3k / weekRepositoryHomepagenpmAtom feed
Your version
In short
1 new1 fixed
Release note
The section about @jsquash/jpeg of a note shared by several packages.
@jsquash/jpeg@1.6.0
Adds
Adds support for only providing a module option override to the
initfunction directlyExample:
import encode, { init } from '@jsquash/jpeg/encode'; await init({ locateFile: (path) => { const remoteLocation = 'https://cdn.mydomain.com/wasm'; return remoteLocation + path; } }); const buffer = await encode(/* image data */);
Fixes
Updates
locateFileemscripten module option type to support prefix parameter.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.