create-new-express-app
Version:
A CLI tool to create a TypeScript Express application with best practices
17 lines (16 loc) • 431 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPkgManager = getPkgManager;
function getPkgManager() {
const userAgent = process.env.npm_config_user_agent || "";
if (userAgent.startsWith("yarn")) {
return "yarn";
}
if (userAgent.startsWith("pnpm")) {
return "pnpm";
}
if (userAgent.startsWith("bun")) {
return "bun";
}
return "npm";
}