npm.io
0.35.3 • Published yesterday

@img-custom/sharp-wasm32

Licence
Apache-2.0 AND LGPL-3.0-or-later AND MIT
Version
0.35.3
Deps
1
Size
867 B
Vulns
0
Weekly
0

Custom Sharp Build

Built from: lovell/sharp

sharp-custom and sharp-libvips-custom (@img-custom) provide prebuilt Sharp binaries with:

WASM builds are not available. JXL is not available on linux-s390x, linux-riscv64, and linux-armv6 due to missing Highway SIMD support.

Prefer the official Sharp binaries unless you specifically need these features.

Usage

Add the following overrides to your package.json, making sure the versions match your installed sharp and sharp-libvips dependencies.

npm install

In some cases, you may need to remove node_modules and package-lock.json for the overrides to take effect.

rm -rf node_modules package-lock.json
npm install

Overrides

{
	"overrides": {
		"sharp": {
			"@img/sharp-darwin-arm64": "npm:@img-custom/sharp-darwin-arm64@v0.35.2",
			"@img/sharp-darwin-x64": "npm:@img-custom/sharp-darwin-x64@v0.35.2",
			"@img/sharp-linux-arm": "npm:@img-custom/sharp-linux-arm@v0.35.2",
			"@img/sharp-linux-arm64": "npm:@img-custom/sharp-linux-arm64@v0.35.2",
			"@img/sharp-linux-ppc64": "npm:@img-custom/sharp-linux-ppc64@v0.35.2",
			"@img/sharp-linux-riscv64": "npm:@img-custom/sharp-linux-riscv64@v0.35.2",
			"@img/sharp-linux-s390x": "npm:@img-custom/sharp-linux-s390x@v0.35.2",
			"@img/sharp-linux-x64": "npm:@img-custom/sharp-linux-x64@v0.35.2",
			"@img/sharp-linuxmusl-arm64": "npm:@img-custom/sharp-linuxmusl-arm64@v0.35.2",
			"@img/sharp-linuxmusl-x64": "npm:@img-custom/sharp-linuxmusl-x64@v0.35.2",
			"@img/sharp-win32-arm64": "npm:@img-custom/sharp-win32-arm64@v0.35.2",
			"@img/sharp-win32-ia32": "npm:@img-custom/sharp-win32-ia32@v0.35.2",
			"@img/sharp-win32-x64": "npm:@img-custom/sharp-win32-x64@v0.35.2",

			"@img/sharp-libvips-darwin-arm64": "npm:@img-custom/sharp-libvips-darwin-arm64@1.3.1",
			"@img/sharp-libvips-darwin-x64": "npm:@img-custom/sharp-libvips-darwin-x64@1.3.1",
			"@img/sharp-libvips-linux-arm": "npm:@img-custom/sharp-libvips-linux-arm@1.3.1",
			"@img/sharp-libvips-linux-arm64": "npm:@img-custom/sharp-libvips-linux-arm64@1.3.1",
			"@img/sharp-libvips-linux-ppc64": "npm:@img-custom/sharp-libvips-linux-ppc64@1.3.1",
			"@img/sharp-libvips-linux-riscv64": "npm:@img-custom/sharp-libvips-linux-riscv64@1.3.1",
			"@img/sharp-libvips-linux-s390x": "npm:@img-custom/sharp-libvips-linux-s390x@1.3.1",
			"@img/sharp-libvips-linux-x64": "npm:@img-custom/sharp-libvips-linux-x64@1.3.1",
			"@img/sharp-libvips-linuxmusl-arm64": "npm:@img-custom/sharp-libvips-linuxmusl-arm64@1.3.1",
			"@img/sharp-libvips-linuxmusl-x64": "npm:@img-custom/sharp-libvips-linuxmusl-x64@1.3.1"
		}
	}
}