Detalhes do pacote

is-windows-bash

ianmitchell205MIT1.0.3

Determines if Node is running on Windows Bash (WSL)

Windows, Bash, WSL

readme (leia-me)

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');
}