New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

image-bunker

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-bunker

把[squoosh](https://github.com/GoogleChromeLabs/squoosh)的几个`wasm`编码模块拎出来做一个独立的包

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

ImageBunker

squoosh的几个wasm编码模块拎出来做一个独立的包

import getCodec from "image-bunker";
const imagequant = await getCodec("imagequant");
const oxipng = await getCodec("oxipng");
const boweserpng = await getCodec("browserpng");
const mozjpeg = await getCodec("mozjpeg");

webpack.config

[
  ...
  {
    test: /\.wasm$/,
    exclude: /_bg\.wasm$/,
    type: "javascript/auto",
    loader: "file-loader",
    options: {
      name: "[name].[hash:5].[ext]",
    }
  },
  {
    test: /_bg\.wasm$/,
    type: "webassembly/experimental",
  });
]

FAQs

Package last updated on 01 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts