is-wsl
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Last updated 2 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-wsl 
SYNC missed versions from official npm registry.

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. Supports both WSL 1 and WSL 2.

Install

npm install is-wsl

Usage

import isWsl from 'is-wsl';

// When running inside Windows Subsystem for Linux
console.log(isWsl);
//=> true

Current Tags

  • 3.1.1                                ...           latest (2 months ago)

9 Versions

  • 3.1.1                                ...           2 months ago
  • 3.1.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.2.0                                ...           6 years ago
  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago

Copyright 2013 - present © cnpmjs.org | Home |