Files
flights_web_raw/ClientApp/node_modules/wsl-utils/readme.md
T
gnezim 0a5ab058a6 Initial commit: Aeroflot Flights Web - Angular 12 baseline
- Angular 12 application with PrimeNG components
- 5 existing Cypress e2e test suites
- SCSS styling with BEM naming convention
- i18n support (10 languages)
- Leaflet map integration
- Complete component hierarchy and routing structure

This baseline will be used for Angular → React migration.
2026-04-05 18:47:57 +03:00

51 lines
982 B
Markdown

# wsl-utils
> Utilities for working with [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux)
## Install
```sh
npm install wsl-utils
```
## Usage
```js
import {isWsl, powerShellPathFromWsl} from 'wsl-utils';
// Check if running in WSL
console.log('Is WSL:', isWsl);
// Get PowerShell path from WSL
console.log('PowerShell path:', await powerShellPathFromWsl());
//=> '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe'
```
## API
### isWsl
Type: `boolean`
Check if the current environment is Windows Subsystem for Linux (WSL).
### powerShellPathFromWsl()
Returns: `Promise<string>`
Get the PowerShell executable path in WSL environment.
### powerShellPath()
Returns: `Promise<string>`
Get the PowerShell executable path for the current environment.
Returns WSL path if in WSL, otherwise returns Windows path.
### wslDrivesMountPoint()
Returns: `Promise<string>`
Get the mount point for fixed drives in WSL.