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 Build Status

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
npm
2026-02-24 13:58:45 +00:00
0
Sindre Sorhus
MIT
1.7 KiB
Assets (1)
Versions (2) View all
2.2.0 2026-02-24
1.1.0 2026-02-24