is-windows-bash

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-windows-bash

Weekly Downloads

131

Version

1.0.3

License

MIT

Last publish

Collaborators

  • ianmitchell