UNPKG

meocord

Version:

Decorator-based Discord bot framework built on discord.js. Brings NestJS-style controllers, dependency injection, guards, and testing utilities to bot development — with a full CLI and TypeScript-first design.

26 lines (23 loc) 505 B
import { execSync } from 'child_process'; const ALL_PACKAGE_MANAGERS = [ 'bun', 'npm', 'yarn', 'pnpm' ]; function detectInstalledPMs() { return ALL_PACKAGE_MANAGERS.filter((pm)=>{ try { execSync(`which ${pm}`, { stdio: 'ignore' }); return true; } catch { return false; } }); } function getInstallCommand(pm) { return `${pm} install`; } export { detectInstalledPMs, getInstallCommand };