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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.3135latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.3135
1.0.29
1.0.10
1.0.00

Package Sidebar

Install

npm i is-windows-bash

Weekly Downloads

125

Version

1.0.3

License

MIT

Last publish

Collaborators

  • ianmitchell