Crypto CLI
    Preparing search index...

    Function valueOrJsonField

    • The text of an input that is either a bare value or the JSON line a --json run printed, from which field is taken.

      Parameters

      • input: Buffer

        The input bytes.

      • field: string

        The field of the JSON form holding the value.

      Returns string

      When the JSON form has no string field.