is-windows-bash

Determines if Node is running on Windows Bash (WSL)

MIT 4 个版本
安装
npm install is-windows-bash
yarn add is-windows-bash
pnpm add is-windows-bash
bun add is-windows-bash
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');
}
版本列表
1.0.3 2016-12-04
1.0.2 2016-11-28
1.0.1 2016-11-28
1.0.0 2016-11-28