system_assignation/node_modules/is-interactive/index.js

10 lines
180 B
JavaScript
Raw Normal View History

2022-03-24 09:22:39 -04:00
'use strict';
module.exports = ({stream = process.stdout} = {}) => {
return Boolean(
stream && stream.isTTY &&
process.env.TERM !== 'dumb' &&
!('CI' in process.env)
);
};