Index

Variables

Const stdin

stdin: keyof symbol = Symbol('<stdin>')

Const stdout

stdout: keyof symbol = Symbol('<stdout>')

Functions

log

  • log(value: any): void
  • module

    std

    Parameters

    • value: any

    Returns void

parse

  • parse(input: string, format?: Format): any
  • Parameters

    • input: string
    • Optional format: Format

    Returns any

print

read

  • read(path?: ReadPath, opts?: ReadOptions): Promise<any>
  • Parameters

    • Default value path: ReadPath = stdin
    • Default value opts: ReadOptions = {}

    Returns Promise<any>

stringify

  • stringify(obj: any, format?: Format): string
  • Parameters

    • obj: any
    • Optional format: Format

    Returns string

valuesFormatFromPath

  • valuesFormatFromPath(path: string): Format

write

  • write(value: any, path?: WritePath, opts?: WriteOptions): void
  • Parameters

    • value: any
    • Default value path: WritePath = stdout
    • Default value opts: WriteOptions = {}

    Returns void