@nestjs/cli
Version:
The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.
9 lines (8 loc) • 363 B
TypeScript
import { PackageManager } from '../package-managers/package-manager.js';
/**
* The package manager that started this process, or npm when none did.
*
* `npx`, `pnpm dlx`, `yarn dlx` and `bunx` all say who they are in
* `npm_config_user_agent` (for example `pnpm/10.4.0 npm/? node/v24.0.0`).
*/
export declare function detectPackageManager(): PackageManager;