UNPKG

astx

Version:

super powerful structural search and replace for JavaScript and TypeScript to automate your refactoring

14 lines (11 loc) 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = isInteractive; function isInteractive() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, _ref$stream = _ref.stream, stream = _ref$stream === void 0 ? process.stdout : _ref$stream; return Boolean((stream === null || stream === void 0 ? void 0 : stream.isTTY) && process.env.TERM !== 'dumb' && !('CI' in process.env)); }