Crypto CLI
    Preparing search index...

    Interface CliIO

    The streams a CLI run reads and writes, injectable for tests.

    interface CliIO {
        stdin: InputSource;
        stdout: (data: string | Uint8Array<ArrayBufferLike>) => void;
        stderr: (text: string) => void;
        isTTY: boolean;
        promptSecret?: (message: string) => Promise<string | undefined>;
    }
    Index

    Source of input when no file argument is given.

    stdout: (data: string | Uint8Array<ArrayBufferLike>) => void

    Write to standard output (results only; bytes are written as is).

    stderr: (text: string) => void

    Write to standard error (diagnostics, usage, errors).

    isTTY: boolean

    True when both stdin and stdout are terminals.

    promptSecret?: (message: string) => Promise<string | undefined>

    Ask for a secret without echoing it; undefined when stdin is not a terminal, so no prompt can be answered.