Home / File/ process-operating-system-provider.ts — astro Source File

process-operating-system-provider.ts — astro Source File

Architecture documentation for process-operating-system-provider.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.

File typescript CoreAstro 1 imports 1 classes

Entity Profile

Dependency Diagram

graph LR
  3ff583ac_df43_2a8c_b493_c6171fc5d6dd["process-operating-system-provider.ts"]
  7db42c05_e873_0887_a39f_34451c181149["../definitions.js"]
  3ff583ac_df43_2a8c_b493_c6171fc5d6dd --> 7db42c05_e873_0887_a39f_34451c181149
  style 3ff583ac_df43_2a8c_b493_c6171fc5d6dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { OperatingSystemProvider } from '../definitions.js';

export class ProcessOperatingSystemProvider implements OperatingSystemProvider {
	readonly #platformToOs: Partial<Record<NodeJS.Platform, string>> = {
		darwin: 'macOS',
		win32: 'Windows',
		linux: 'Linux',
	};

	readonly name: NodeJS.Platform = process.platform;
	readonly displayName: string = `${this.#platformToOs[this.name] ?? this.name} (${process.arch})`;
}

Domain

Dependencies

  • ../definitions.js

Frequently Asked Questions

What does process-operating-system-provider.ts do?
process-operating-system-provider.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain.
What does process-operating-system-provider.ts depend on?
process-operating-system-provider.ts imports 1 module(s): ../definitions.js.
Where is process-operating-system-provider.ts in the architecture?
process-operating-system-provider.ts is located at packages/astro/src/cli/infra/process-operating-system-provider.ts (domain: CoreAstro, directory: packages/astro/src/cli/infra).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free