Docs
CLI
Universalize

Universalize

Combine built binaries into one universal binary

Usage

# CLI
napi universalize [--options]
// Programmatically
import { NapiCli } from '@napi-rs/cli'
 
new NapiCli().universalize({
  // options
})

Options

OptionsCLI Optionstyperequireddefaultdescription
--help,-hget help
cwd--cwdstringfalseprocess.cwd()The working directory of where napi command will be executed in, all other paths options are relative to this path
configPath--config-path,-cstringfalsePath to napi config json file
packageJsonPath--package-json-pathstringfalsepackage.jsonPath to package.json
outputDir--output-dir,-ostringfalse./Path to the folder where all built .node files put, same as --output-dir of build command