is-windows-bash
v1.0.3
Published
Determines if Node is running on Windows Bash (WSL)
Downloads
6,087
Readme
is-windows-bash
Exports a function that returns true if the script is running in a Windows Bash environment (WSL) and false otherwise.
Usage
$ npm install is-windows-bash --save
const isWindowsBash = require('is-windows-bash');
if (isWindowsBash()) {
console.log('Welcome to the future');
}