is-wsl
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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.0                                ...           latest (a year ago)

8 Versions

  • 3.1.0                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.2.0                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE