Skip to content

Options

Defined in: index.ts:111

readonly agent?: "npm" | "pnpm" | "yarn-classic" | "yarn-berry";

Defined in: index.ts:115

Explicit selection takes precedence over detection.


readonly directory: string;

Defined in: index.ts:113

Project directory, containing package.json. Use the workspace root for workspace installs.


readonly userAgent?: string;

Defined in: index.ts:117

Optional npm_config_user_agent supplied by the caller; used only as a fallback.