Skip to content
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Branch: master
Clone or download
Latest commit 4b7d236 May 21, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes Init Apr 16, 2017
.gitignore
.travis.yml Init Apr 16, 2017
index.js
license
package.json
readme.md
test.js

readme.md

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

You can’t perform that action at this time.