Check if the process is running inside MinGW
npm install --save is-mingw
const isMinGW = require('is-mingw'); console.log(isMinGW());
MIT