Platform-specific native binary addon for Windows ARM64 MSVC providing super-fast HTML minification capabilities
npx @tessl/cli install tessl/npm-swc--html-win32-arm64-msvc@1.13.0@swc/html-win32-arm64-msvc is a platform-specific native binary addon that provides HTML minification capabilities for Windows ARM64 systems compiled with MSVC. This package contains only a native Node.js addon (.node file) and is automatically selected by the main @swc/html package when running on compatible platforms.
@swc/htmlos: ["win32"], cpu: ["arm64"])This package is part of the SWC (Speedy Web Compiler) ecosystem and provides platform-specific native binaries for HTML minification. It contains a single native binary file (swc-html.win32-arm64-msvc.node) that implements fast HTML minification through Rust-compiled code.
Important: This package is not imported directly by users. The main @swc/html package automatically detects the platform and loads the appropriate native binary.
This package is not imported directly. Instead, use the main @swc/html package:
import { minify, minifySync, minifyFragment, minifyFragmentSync } from "@swc/html";For CommonJS:
const { minify, minifySync, minifyFragment, minifyFragmentSync } = require("@swc/html");Usage is through the main @swc/html package, which automatically loads this binary on Windows ARM64 MSVC systems:
import { minify, minifySync } from "@swc/html";
// On Windows ARM64 MSVC, this automatically uses the native binary from this package
const result = await minify("<html><body> <h1>Hello World</h1> </body></html>", {
collapseWhitespaces: "smart",
removeComments: true
});
console.log(result.code); // "<html><body><h1>Hello World</h1></body></html>"This package is a native binary addon within the SWC HTML minification ecosystem:
.node file (swc-html.win32-arm64-msvc.node) compiled from Rust@swc/html based on process.platform === "win32" and process.arch === "arm64"@swc/html packageThis package provides the underlying native implementation for HTML minification on Windows ARM64 MSVC systems.
// This package contains only a native binary file:
// swc-html.win32-arm64-msvc.node
// Platform constraints (from package.json):
interface PlatformSupport {
os: ["win32"];
cpu: ["arm64"];
}Automatic platform detection and loading by the main @swc/html package.
// Platform detection logic (handled by @swc/html):
// - process.platform === "win32"
// - process.arch === "arm64"
// - MSVC runtime availability
// When conditions are met, @swc/html loads:
// require("@swc/html-win32-arm64-msvc/swc-html.win32-arm64-msvc.node")This package contains only the native binary file:
swc-html.win32-arm64-msvc.node - Native Node.js addon compiled from Rustpackage.json - Package metadata with platform constraintsThe native binary implements the same interface as other SWC HTML platform binaries and provides the underlying functionality for:
The main @swc/html package handles platform detection and loading:
// @swc/html automatically detects platform and loads appropriate binary
import { minify } from "@swc/html";
// On Windows ARM64 MSVC systems, this uses @swc/html-win32-arm64-msvc internally
const result = await minify(htmlContent, {
collapseWhitespaces: "smart",
removeComments: true,
removeEmptyAttributes: true
});If this platform-specific binary is unavailable or fails to load, the main @swc/html package will: