is_interative.js 391 B

123456789101112131415161718192021
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. var _isCi;
  6. function _load_isCi() {
  7. return (_isCi = _interopRequireDefault(require('is-ci')));
  8. }
  9. function _interopRequireDefault(obj) {
  10. return obj && obj.__esModule ? obj : {default: obj};
  11. }
  12. exports.default =
  13. process.stdout.isTTY &&
  14. process.env.TERM !== 'dumb' &&
  15. !(_isCi || _load_isCi()).default;