From 46e43f4bde4a35785b4997b81e86cd19f046b69b Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 21 Dec 2021 16:52:28 +0100 Subject: Commit --- node_modules/is-interactive/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 node_modules/is-interactive/index.js (limited to 'node_modules/is-interactive/index.js') diff --git a/node_modules/is-interactive/index.js b/node_modules/is-interactive/index.js new file mode 100644 index 0000000..99ff823 --- /dev/null +++ b/node_modules/is-interactive/index.js @@ -0,0 +1,9 @@ +'use strict'; + +module.exports = ({stream = process.stdout} = {}) => { + return Boolean( + stream && stream.isTTY && + process.env.TERM !== 'dumb' && + !('CI' in process.env) + ); +}; -- cgit