is-wsl (1.1.0)
Published 2026-02-24 13:58:45 +00:00 by atheaadmin
Installation
registry=npm install is-wsl@1.1.0"is-wsl": "1.1.0"About this package
is-wsl 
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Can be useful if you need to work around unimplemented or buggy features in WSL.
Install
$ npm install --save is-wsl
Usage
const isWsl = require('is-wsl');
// When running inside Windows Subsystem for Linux
console.log(isWsl);
//=> true
License
MIT © Sindre Sorhus
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| ava | * |
| clear-require | ^2.0.0 |
| proxyquire | ^1.7.11 |
| xo | * |
Keywords
check
wsl
windows
subsystem
linux
detect
bash
process
console
terminal
is
Details
Assets (1)
Versions (2)
View all
is-wsl-1.1.0.tgz
1.7 KiB