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
- Host: GitHub
- URL: https://github.com/ianmitchell/is-windows-bash
- Owner: IanMitchell
- Created: 2016-11-28T00:17:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-23T21:29:40.000Z (over 9 years ago)
- Last Synced: 2025-02-01T15:45:00.645Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
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');
}
```