index.js 313 B

12345678910111213
  1. 'use strict';
  2. module.exports = () => {
  3. if (process.platform !== 'win32') {
  4. return true;
  5. }
  6. return Boolean(process.env.CI) ||
  7. Boolean(process.env.WT_SESSION) || // Windows Terminal
  8. process.env.TERM_PROGRAM === 'vscode' ||
  9. process.env.TERM === 'xterm-256color' ||
  10. process.env.TERM === 'alacritty';
  11. };