| description | Project overview, structure, and key files for yao-pkg/pkg |
|---|
pkg packages Node.js projects into standalone executables for Linux, macOS, and Windows. It supports Node.js 22 and newer, virtual filesystem bundling, V8 bytecode compilation, native addons, and compression (Brotli, GZip).
This is yao-pkg/pkg — a maintained fork of the archived vercel/pkg.
lib/— TypeScript source (compiled tolib-es5/vianpm run build)prelude/— Bootstrap code injected into packaged executablesdictionary/— Package-specific configs for known npm packagestest/— Numbered test directories (test-XX-name/).github/workflows/— CI/CD (GitHub Actions)
lib/index.js— API entry pointlib/bin.js— CLI entry pointprelude/bootstrap.js— Injected into every packaged executabledictionary/*.js— Special handling for specific npm packages