InitTemplateBase.process property
The Node.js process object for accessing runtime environment information.
Signature
readonly process: NodeJS.Process;
Remarks
This reference provides access to process properties including standard I/O streams, platform information, and architecture details. It is configurable via the constructor to support testing scenarios where process properties need to be mocked or controlled.
Usage within the template:
- Platform detection via
process.platformandprocess.archfor platform-specific property validation. - TTY detection via
stdin.isTTYandstdout.isTTYto determine whether interactive prompting is possible. - Standard I/O access for interactive user prompts and diagnostic output.
Defaults to the global Node.js process object when not explicitly provided in the constructor, enabling normal runtime behaviour whilst allowing test environments to inject controlled process implementations.
Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.57.2.