pmex
Version:
Run dynamic NPM or YARN or PNPM
17 lines (16 loc) • 420 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
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;