$ npm install is-windows-bash
Exports a function that returns true if the script is running in a Windows Bash environment (WSL) and false otherwise.
$ npm install is-windows-bash --save
const isWindowsBash = require('is-windows-bash');
if (isWindowsBash()) {
console.log('Welcome to the future');
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE