Oxc Minifier Node API: a high-performance JavaScript/TypeScript minifier written in Rust via N-API. Current version 0.125.0 is alpha software, released weekly. It outperforms esbuild and Terser in speed but lacks some advanced optimizations like constant inlining and dead code removal. Ships TypeScript types. Requires Node.js 20.19+ or 22.12+.
npm install goatlint-minifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows synchronous and asynchronous minification with options for compression, mangling, whitespace removal, and sourcemap generation.
Ensure input code is valid and free of semantic errors before passing to the minifier; use a separate linter or parser step if needed.
Upgrade Node.js to a supported version (20.19+ or 22.12+).
Use ESM imports or dynamic import: await import('oxc-minify').Always validate output code. Report bugs at GitHub. Consider using in non-production environments until stable.
Use named exports { minifySync, minify } instead.Run npm install oxc-minify (note: package name is 'oxc-minify', not 'goatlint-minify').
Use import { minifySync } from 'oxc-minify'.Upgrade Node.js to ^20.19.0 or >=22.12.0.
Check code with a parser like oxc-parser or acorn before minifying.