UNPKG

326 BTypeScriptView Raw
1/**
2Check if the process is running inside [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) (Bash on Windows).
3
4@example
5```
6import isWsl = require('is-wsl');
7
8// When running inside Windows Subsystem for Linux
9console.log(isWsl);
10//=> true
11```
12*/
13declare const isWsl: boolean;
14
15export = isWsl;