wishthis/node_modules/is-interactive/index.js
2022-06-08 12:36:39 +02:00

9 lines
180 B
JavaScript

'use strict';
module.exports = ({stream = process.stdout} = {}) => {
return Boolean(
stream && stream.isTTY &&
process.env.TERM !== 'dumb' &&
!('CI' in process.env)
);
};