Options
All
  • Public
  • Public/Protected
  • All
Menu

Module cli

Process Functions

Process Functions

argvParse

  • argvParse(): Record<string, boolean | null | number | string | undefined>
  • name

    argvParse

    description

    Parses process.argv string.

    summary

    import { argvParse } from '@corefunc/v8/cli/argv-parse';

    since

    0.2.4

    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>
  • name

    envParse

    description

    Parses process.env string.

    summary

    import { envParse } from '@corefunc/v8/cli/env-parse';

    since

    0.2.5

    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>

Generated using TypeDoc