Module cli
Process Functions
argvParse
- argvParse(): Record<string, boolean | null | number | string | undefined>
-
Returns Record<string, boolean | null | number | string | undefined>
envParse
- envParse(defaults?: Record<string, boolean | null | number | string | undefined>, shouldBeStrings?: false): Record<string, boolean | null | number | string | undefined>
- envParse(defaults?: Record<string, boolean | null | number | string | undefined>, shouldBeStrings?: "true"): Record<string, string>
-
Parameters
-
Optional defaults: Record<string, boolean | null | number | string | undefined>
-
Optional shouldBeStrings: false
Returns Record<string, boolean | null | number | string | undefined>
-
Parameters
-
Optional defaults: Record<string, boolean | null | number | string | undefined>
-
Optional shouldBeStrings: "true"
Returns Record<string, string>
argvParse
Parses
process.argv
string.import { argvParse } from '@corefunc/v8/cli/argv-parse';
0.2.4