pmex
Version:
Run dynamic NPM or YARN or PNPM
12 lines (11 loc) • 365 B
TypeScript
export type Args = Omit<{
[key: string]: string | number | boolean;
}, '_' | '$'> & {
_: string[];
$: string;
};
export type ArgsOptions = {
case?: 'camel' | 'pascal' | 'snake' | 'kebab' | null;
aliases?: Record<string, string>;
};
export default function args(defaults?: Record<string, string | number | boolean>, options?: ArgsOptions): Args;