Global

Type Definitions

StdioContextOptions

Options for StdioContext.
Type:
  • Object
Properties:
Name Type Attributes Description
overwrite boolean <optional>
Overwrite the current stdio stream value when exiting?
stdin stream.Readable <optional>
Stream which will act as stdin. null for empty input. undefined to leave stdin unchanged.
stdout stream.Writable <optional>
Stream which will act as stdout. null to discard output. undefined to leave stdout unchanged.
stderr stream.Writable <optional>
Stream which will act as stderr. null to discard output. undefined to leave stderr unchanged.
strict boolean <optional>
Throw an exception if {@see StdioContext#exit} is improperly paired with {@see StdioContext#enter} or the streams have been modified outside of StdioContext and overwrite is falsey.
Source: