PlatformDetector.(constructor)
Constructs a platform detector instance.
Signature
constructor(_process?: NodeJS.Process);
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
_process |
NodeJS.Process |
(Optional) The Node.js process object providing platform and architecture information. Defaults to the global |
Remarks
This constructor accepts an optional process object parameter, enabling dependency injection for testing scenarios. When no process object is provided, the global Node.js process is used automatically.
The injected process object must implement the platform and arch properties from the NodeJS.Process interface.
Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.57.2.