UNPKG

minargs

Version:
35 lines 916 B
declare global { namespace NodeJS { interface Process { defaultApp?: boolean; } } } export interface MinArgsOptions { alias?: Record<string, string>; recursive?: boolean; positionalValues?: boolean; } export interface ArgvItem { index: number; type: 'process' | 'argument' | 'short' | 'positional' | 'value'; value: string | { name: string; value: string; }; } export interface MinArgsResult { args: Record<string, string[]>; positionals: string[]; remainder: string[]; argv: ArgvItem[]; } export declare function minArgs(argv?: string[] | MinArgsOptions, options?: MinArgsOptions): MinArgsResult; export declare function mainArgs(): number; declare const _default: { minargs: typeof minArgs; minArgs: typeof minArgs; mainArgs: typeof mainArgs; }; export default _default; //# sourceMappingURL=index.d.ts.map