UNPKG

pmex

Version:

Run dynamic NPM or YARN or PNPM

15 lines (14 loc) 375 B
import { type ExecSyncOptions } from 'node:child_process'; export type Command = string | { default: string; npm?: string; yarn?: string; pnpm?: string; bun?: string; } | { npm: string; yarn: string; pnpm: string; bun: string; }; export default function pmex(command: Command, options?: ExecSyncOptions): string | Buffer<ArrayBufferLike>;