An open API service indexing awesome lists of open source software.

https://github.com/ianmitchell/is-windows-bash

Determine if the script is running in WSL
https://github.com/ianmitchell/is-windows-bash

Last synced: 12 months ago
JSON representation

Determine if the script is running in WSL

Awesome Lists containing this project

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
```

```javascript
const isWindowsBash = require('is-windows-bash');

if (isWindowsBash()) {
console.log('Welcome to the future');
}
```