UNPKG

@skarab/detect-package-manager

Version:

Detects which package manager (bun, pnpm, yarn, npm) is used based on the current working directory.

7 lines (6 loc) 186 B
import { promisify } from 'node:util'; import { exec } from 'node:child_process'; /** * Promisified version of child_process {@link exec}. */ export const execAsync = promisify(exec);